Syntax Highlighting Problem

CodeLite installation/troubleshooting forum
CppL
CodeLite Curious
Posts: 4
Joined: Mon Feb 16, 2015 1:10 am
Genuine User: Yes
IDE Question: C++
Contact:

Syntax Highlighting Problem

Post 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!
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Syntax Highlighting Problem

Post 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
Make sure you have read the HOW TO POST thread
CppL
CodeLite Curious
Posts: 4
Joined: Mon Feb 16, 2015 1:10 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Syntax Highlighting Problem

Post by CppL »

Oh, I see, Thanks. :)
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Syntax Highlighting Problem

Post by eranif »

I might fork wxWidgets and fix this myself (and uploading a pull request)

Eran
Make sure you have read the HOW TO POST thread
petah
CodeLite Expert
Posts: 231
Joined: Sat Nov 24, 2012 8:04 pm
Genuine User: Yes
IDE Question: c++
Location: Los Angeles
Contact:

Re: Syntax Highlighting Problem

Post by petah »

eranif wrote:I might fork wxWidgets and fix this myself (and uploading a pull request)

Eran
+1

;)

-- p
main: Debian Jessie x64 + custom wxTrunk
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Syntax Highlighting Problem

Post 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
Make sure you have read the HOW TO POST thread
petah
CodeLite Expert
Posts: 231
Joined: Sat Nov 24, 2012 8:04 pm
Genuine User: Yes
IDE Question: c++
Location: Los Angeles
Contact:

Re: Syntax Highlighting Problem

Post by petah »

awesome! I can finally inline GL shaders without hackish lines, thx!

-- p
main: Debian Jessie x64 + custom wxTrunk
Post Reply