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.
How to add the C comment style to ASM files
-
- CodeLite Veteran
- Posts: 63
- Joined: Mon Apr 06, 2009 10:43 am
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- 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
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
- 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
Make sure you have read the HOW TO POST thread
-
- CodeLite Veteran
- Posts: 63
- Joined: Mon Apr 06, 2009 10:43 am
- Contact:
Re: How to add the C comment style to ASM files
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.
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.
-
- CodeLite Veteran
- Posts: 63
- Joined: Mon Apr 06, 2009 10:43 am
- Contact:
Re: How to add the C comment style to ASM files
Hi Eran,
I had to patch LexAsm.cxx to make this work. Comment block was not supported by the scintilla lexer.
Thanks.
I had to patch LexAsm.cxx to make this work. Comment block was not supported by the scintilla lexer.
Thanks.