Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question