Closed mathiasene closed 9 years ago
This is something related to how you parse the source code. RichTextFX does not tell you how to parse your source code. The flip side is that it does not provide you with any support for parsing. All it cares about are the style ranges computed from the result of your parser. The demos provided with RichTextFX use regular expressions to parse Java tokens. For more sophisticated parsing, you might want to use something else, like ANTLR or Parboiled, just to name a couple. Or you can keep hacking with regular expressions, but their power is limited.
So I suggest:
Hello everyone, I'd like to know how to highlight PHP and HTML in the same CodeArea. I've tried a lot with if (newValue.startsWith("<?php")) { //I Use } and newValue.startsWith("?>") and so on. How can I do that? I've tried a lot...