Re: Styling assembly labels

23 views
Skip to first unread message

Philippe Lhoste

unread,
Aug 27, 2012, 4:20:49 AM8/27/12
to scite-i...@googlegroups.com
On 25/08/2012 00:07, Cinolt wrote:
> Hi. I want to have assembly labels be assigned a certain color. Assembly labels are
> just text ending with a colon (for example "label:"). Is there any way to accomplish
> this? I know that colors can be assigned to certain text using for example
> "style.asm.0=fore:#ffffff", however I don't know how the numbers after the "style.asm."
> are assigned, other than what existing comments say. Is it possible to assign a new
> number to assembly labels, if so how would this be done? Thanks for any help.

To do this, you probably need to change the assembly language lexer you use, for example
the LexAsm.cxx file in scintilla/lexers
The "numbers after the style.asm." are defined in scintilla/include/Scintilla.iface and go
to SciLexer.h in the same folder.
All this means you have to change the C++ code of Scintilla and to recompile it.

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply all
Reply to author
Forward
0 new messages