Notepad++ edit existing (C++) syntax
-
Hi!
I ask experts to tell me how to edit the existing (C++) syntax in Notepad++ or add to it - so that parameters that start with $ (for example, $PAR1) are highlighted in a separate color? -
@Андрей-Счастливый said in Notepad++ edit existing (C++) syntax:
parameters that start with $ (for example, $PAR1) are highlighted in a separate color?
Is this a valid C++ syntax?
Can you show some examples if you think so?You might have luck with the EnhanceAnyLexer plugin, but I don’t think you’ll be able to do what you wish with the Notepad++ processing of C++.
-
@Alan-Kilborn said in Notepad++ edit existing (C++) syntax:
Is this a valid C++ syntax?
Lexilla has optional support for it:
lexer.cpp.allow.dollars Set to 0 to disallow the ‘$’ character in identifiers with the cpp lexer. Since the default is
1
, and the editor does not disable it, C/C++ identifiers containing$
should already appear valid to the lexer. The only problem is the lack of special styling. The plugin recommended above would be sufficient for that. -
@Alan-Kilborn said in Notepad++ edit existing (C++) syntax:
Is this a valid C++ syntax?
it’s a “tolerated” extension to standard C++, as far as i can gather. [1]
-
Yuck to using
$
in such a way in C++ – is that really needed? (purely a rhetorical question since this is not the forum for it).