V
V
voidkor2015-04-02 11:34:15
Java
voidkor, 2015-04-02 11:34:15

How to make syntax highlighting for your language?

There is a language formed with yacc.
The graphical shell of the language will be made using Eclipse RCP.
Advise literature on how to do syntax highlighting.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-04-02
@adsky13

Well, in fact, everything is simpler, components like Scintilla are used on which Notepad ++ is made, or similar other libraries, but if you want to write anyway, then you need a code parser that will parse all the text and highlight / highlight the necessary operators
There is a library in Java,
highlights: ActionScript3, Bash/shell, ColdFusion, C#, C++, CSS, Delphi, Diff, Erlang, Groovy, JavaScript, Java, JavaFX, Perl, PHP, Plain Text, PowerShell, Python, Ruby, Scala, SQL, Visual Basic, XML
code.google.com/p/java-syntax-highlighter
See how it's done :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question