RSyntaxTextArea
RSyntaxTextArea copied to clipboard
A syntax highlighting, code folding text editor for Java Swing applications.
We use RSyntaxTextArea in ZAP (https://github.com/zaproxy/zaproxy/) - so many thanks :) The user can set any Java LookAndFeel but we've recently added dark mode support as per https://github.com/zaproxy/zaproxy/issues/5542 and need...
Test case (macOS, Java 13): ```java private static void layoutComponent(Component component) { synchronized (component.getTreeLock()) { component.doLayout(); if (component instanceof Container) { for (Component child : ((Container) component).getComponents()) { layoutComponent(child); }...
```java @Test public void testSetTheme() { RSyntaxTextArea rSyntaxTextArea = new RSyntaxTextArea() { @Override public void updateUI() { super.updateUI(); try { Theme.load(Theme.class.getResourceAsStream("themes/default.xml")) .apply(this); } catch (IOException e) { throw new RuntimeException("theme...
TextMate gives you the capability to define a grammar with JSON (VSCode) or PList. And it exists a lot of grammar with TextMate (JSON, XML, C#, TypeScript, etc) If you...
Hi the auto indent is cool any way to make it auto unindent on brace close for example in JSON?
The same way core JavaFX package doesn't include FXML parsing and it has it's own javafx-fxml package, RSyntaxTextArea should also be modular. I'm currently working on a commit for logisim-evolution...
I've noticed that in `RTextAreaBase.setBackgroundColor ( Color )` you configure text area opacity as well, if the `Color`'s `null` or has alpha == 255 - text area is made opaque....
Is there any example on how to add a variable to a parser ?
Fix WrappedLine calculateLineCount and modelToView when dealing with certain lines containing tabs.
When background painting for secondary languages (e.g. CSS or JS in HTML) is enabled, marked occurrences don't work in them. Looks like we are painting secondary language BG after marked...