Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-01

C++ syntax highlighting not working

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lord Satan

As the subject says.
See Environment->Options->Editor->Colors.
Set Language to C++ and no highlighting at all (the same is true for Python, Unix Shell Script, PHP, Perl, SQL), but only for C++ I know that it used to work. Just wanted to verify that it is not only my problem before filing a bug report.

Ubuntu 8.10 64-Bit, Laz svn version 18505, fpc 2.3.1

A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?

Reply by email

Martin Friebe
to Lord Satan

you are righjt,

I also found where it was introduced.
I will fix it tonight.

In the meantime Synedit.pp ;line 3309
        if (FFoldedLinesView.Ranges[CurLine] = nil) then begin
          DrawHiLightMarkupToken(nil, PChar(Pointer(sLine)), Length(sLine));
        end

You may simply remove the surrounding if condition

Lord Satan wrote 8 lines
As the subject says. See Environment->Options->Editor->Colors. Set Language to C++ and no highlighting at all (the same is true for Python, Unix Shell Script, PHP, Perl, SQL), but only for C++ I know that it used to work. Just wanted to verify that it is not only my problem before filing a bug report. Ubuntu 8.10 64-Bit, Laz svn version 18505, fpc 2.3.1

Reply by email

Lord Satan
to Martin Friebe
Show quoted text 12 lines
you are righjt, I also found where it was introduced. I will fix it tonight. In the meantime Synedit.pp ;line 3309 if (FFoldedLinesView.Ranges[CurLine] = nil) then begin DrawHiLightMarkupToken(nil, PChar(Pointer(sLine)), Length(sLine)); end You may simply remove the surrounding if condition

This was not as simple as it sounded. But replacing FFoldedLinesView.Ranges[CurLine] = nil with false did the trick. Thanks.

Btw it looks like you have problems reading my signature. Perhaps a problem of your mail client or mine. ;)

A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?

Reply by email