Page 1 of 1
Syntax colour of ASM keywords has no effect
Posted: Tue Jun 25, 2013 9:53 pm
by uwekel
Hi,
when i setup the syntax highlight color for ASM keywords, it has no effect. They are always rendered white (on black background).
Best regards
Uwe
Re: Syntax colour of ASM keywords has no effect
Posted: Wed Aug 14, 2013 11:17 am
by Fred
Seems to work correctly here, can anybody else confirm ?
Re: Syntax colour of ASM keywords has no effect
Posted: Wed Aug 14, 2013 9:43 pm
by idle
Pb 5.20 b10, ubuntu 12.04 x64 in KDE
Using inline asm with ! color is correct
checking highlight asm keywords in compiler options and using EnableAsm color is correct
Re: Syntax colour of ASM keywords has no effect
Posted: Thu Aug 15, 2013 7:00 pm
by uwekel
Hi! I have forgotten to set the option "Enable inline ASM syntax coloring" in the compiler options dialog

Why the hell this option is placed a second time there? There is already a checkbox in the global preferences dialog left beside ASM keywords color!
Re: Syntax colour of ASM keywords has no effect
Posted: Thu Aug 15, 2013 7:59 pm
by Fred
Because it depends of your source code/project. You don't want it globally enabled.
Re: Syntax colour of ASM keywords has no effect
Posted: Thu Aug 15, 2013 8:30 pm
by uwekel
Therefore the global option checkbox should be removed. At the moment it works only if you set both checkboxes.
Re: Syntax colour of ASM keywords has no effect
Posted: Thu Aug 15, 2013 9:23 pm
by Fred
It's not the same: the checkbox before the ASM color is here to be able to turn it off completely, like any other color token.
Re: Syntax colour of ASM keywords has no effect
Posted: Fri Aug 16, 2013 8:13 am
by uwekel
Thank you, Fred. IMHO i cannot imagine that someone want to use syntax highlighting in one but not in another project

Re: Syntax colour of ASM keywords has no effect
Posted: Fri Aug 16, 2013 10:18 am
by Fred
If you don't use asm, you can use asm keywords like "test", "call" etc which are common enough to be used. Having a coloring which move them in uppercase when you don't use asm at all isn't a good idea. And the asm keyword are dependant of the processor.