Page 1 of 1
How to add the C comment style to ASM files
Posted: Tue Nov 09, 2010 12:11 pm
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.
Re: How to add the C comment style to ASM files
Posted: Tue Nov 09, 2010 1:41 pm
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
) 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
Re: How to add the C comment style to ASM files
Posted: Tue Nov 09, 2010 1:55 pm
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.
Re: How to add the C comment style to ASM files
Posted: Wed Nov 10, 2010 1:30 pm
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.