How to add the C comment style to ASM files

General questions regarding the usage of CodeLite
DSP_Programmer
CodeLite Veteran
Posts: 63
Joined: Mon Apr 06, 2009 10:43 am
Contact:

How to add the C comment style to ASM files

Post by DSP_Programmer »

Hi,

I would like to choose the syntax style for "C style comments" in assembler files, but can't find it within the "Style settings" within the ASM tab. Is there any way to keep the existing ASM style and add the C comment style (or any other)?

Thanks.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to add the C comment style to ASM files

Post by eranif »

Apperantly there are 2 comments style that are supported by scintilla:
- Comment block
- Comment

I am no ASM expert, but I suspect that what you want is the "Comment Block"

For some reason this style is mistakenly named "C++ comment" (hey, this lexer was contributed :D) in the ASM tab settings - however, it is just a name but the ID is the correct one, so editing this style should do the trick

Eran
Make sure you have read the HOW TO POST thread
DSP_Programmer
CodeLite Veteran
Posts: 63
Joined: Mon Apr 06, 2009 10:43 am
Contact:

Re: How to add the C comment style to ASM files

Post by DSP_Programmer »

Hi Eran,

thanks for your description. However, this does not seem to work, see the enclosed screenshots. I would like to have all comment lines ( // and /* */ and ; )with comment style. Do you see any way how I could solve this?

Thanks.
You do not have the required permissions to view the files attached to this post.
DSP_Programmer
CodeLite Veteran
Posts: 63
Joined: Mon Apr 06, 2009 10:43 am
Contact:

Re: How to add the C comment style to ASM files

Post by DSP_Programmer »

Hi Eran,

I had to patch LexAsm.cxx to make this work. Comment block was not supported by the scintilla lexer.

Thanks.
Post Reply