#316 DEVCPP 4.9.8.9 - Syntax highlighting error

closed
Peter
None
2
2012-09-26
2004-05-11
Anonymous
No

Try this line in DEVCPP4989 editor

Preprocessor

include <project.h>

include <mystring.h>

<> are highlighed like symbols
project.h mystring.h are highlighed like normal text.

or

Preprocessor

if((APP_SOFTWARE==SMSP1)|| \

(__APP_SOFTWARE__==SMSP2)|| \
(__APP_SOFTWARE__==SLLP1)|| \
(__APP_SOFTWARE__==SPKS1)|| \
(__APP_SOFTWARE__==STDP1))

backslash '\' doesn't link several preprocesor
'if' lines.

Discussion

  • Oliver Stöneberg

    Logged In: YES
    user_id=591019

    the preprocessor behavior behind the # has been changes a
    few version ago. it used to highlight everything behind the

    . now it just highlights the text before the whitespace.

    I don't know, if this was a wanted behavior or if it's a
    small glitch, that came in a few versions back.

     
  • Peter

    Peter - 2004-05-19

    Logged In: YES
    user_id=936015

    Hi,

    this isn't really a bug, but the preprocessor thingy needs a bit
    finetuning, to only colorize the #if directive instead of the
    whole line.

    Here is more info: https://sourceforge.net/forum/forum.php?
    thread_id=1047376&forum_id=33286

     
  • Peter

    Peter - 2004-05-19

    Logged In: YES
    user_id=936015

    OK, changed the 2nd case from this example.

    It only highlights "#if" now, instead of the entire first line.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks