Author Topic: #define and highlighting  (Read 18151 times)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: #define and highlighting
« Reply #15 on: August 31, 2013, 01:00:31 pm »
It seems scintilla or teh font is broken, if I change it in the editor settings it works correctly.
Your font ("Ubuntu" ?) is replaced by "Cantarell" (system default) and this does (reproducible) not work.

The cause seems to be a problem with the "fi" in define which is recognized as one letter and not as two, it might in fact be one special character in the editor.

I think there was similar issue before with some fonts (at least on Ubuntu), but I'm not absolutely sure about this.
In general it is better to use a monospaced font instead a proportional font for programming.

Online Commaster

  • Almost regular
  • **
  • Posts: 171
Re: #define and highlighting
« Reply #16 on: August 31, 2013, 01:28:46 pm »
Yes, changing the font to, say, Monospace fixes the highlighting.
Thanks again.
« Last Edit: August 31, 2013, 01:31:55 pm by Commaster »