Page 1 of 1

Syntax Highlighting Problem

Posted: Tue Feb 17, 2015 1:17 am
by CppL
Problem: Syntax Highlighting.
Specs : CodeLite 7.0(The Official Release/Build), WinXp SP3 (32-bit).
Lang : C++.

It looks like CL treats everything after R" as a raw string in C++!
In Colours and Fonts->Syntax Highlight->c++/javascript->Customize
->Raw String Foreground Colour = rgb(128,0,0).

Code: Select all

// C++ Code Example
// ... Normal ...
const char *const raw_string = R"(Raw String)";
// Starting       from       here ^ the rest of the file is rgb(128,0,0) colored!

Re: Syntax Highlighting Problem

Posted: Tue Feb 17, 2015 6:53 pm
by eranif
It looks like a bug in wxWidgets.
As CodeLite uses wxStyledTextCtrl which uses the underlying control Scintilla version 3.4.1
I see that this was fixed in scintilla v3.4.4 (see here: http://www.scintilla.org/ScintillaHistory.html)

We can only open a bug to wxWidgets and wait for them to update their bundled version

Eran

Re: Syntax Highlighting Problem

Posted: Wed Feb 18, 2015 12:13 am
by CppL
Oh, I see, Thanks. :)

Re: Syntax Highlighting Problem

Posted: Thu Feb 19, 2015 10:05 am
by eranif
I might fork wxWidgets and fix this myself (and uploading a pull request)

Eran

Re: Syntax Highlighting Problem

Posted: Thu Feb 19, 2015 10:02 pm
by petah
eranif wrote:I might fork wxWidgets and fix this myself (and uploading a pull request)

Eran
+1

;)

-- p

Re: Syntax Highlighting Problem

Posted: Sat Jul 11, 2015 2:02 pm
by eranif
FYI: I just updated wxwidgets (Windows, Scintilla 3.5.5)
and the problem is fixed. It should be available on the next weekly build.

Note that this problem will persist until wx3.2 is available for Linux

Eran

Re: Syntax Highlighting Problem

Posted: Mon Jul 13, 2015 6:04 am
by petah
awesome! I can finally inline GL shaders without hackish lines, thx!

-- p