RSyntaxTextArea icon indicating copy to clipboard operation
RSyntaxTextArea copied to clipboard

A syntax highlighting, code folding text editor for Java Swing applications.

Results 169 RSyntaxTextArea issues
Sort by recently updated
recently updated
newest added

Control Click Opens Popup rather than goining to definition

[{"_id":"634bae64d297b62132299923","body":"Interesting, I can't reproduce it on Windows, at least not with the latest build of RSTALanguageSupport (running its `DemoApp`). I'll try on a mac tomorrow.\r\n\r\nIs the only change you made updating RSTA to 3.2.0? What version of RSTALanguageSupport are you using?\r\n\r\nAnd no - that behavior would not be intentional :)","issue_id":1660537878592,"origin_id":1069955476,"user_origin_id":1631766,"create_time":1647484957,"update_time":1647484957,"id":1665904228633,"updated_at":"2022-10-16T07:10:28.632000Z","created_at":"2022-10-16T07:10:28.632000Z"},{"_id":"634bae64d297b62132299924","body":"On a Mac I see ctrl+click opening the popup menu *and* navigarting to\/selecting the definition. I'll admit I haven't used this funcdtionality on a Mac in quite a while, so I don't know when this behavior changed. I'll look back to pre-3.1.0 releases and ses what's changed.","issue_id":1660537878592,"origin_id":1073433892,"user_origin_id":1631766,"create_time":1647831615,"update_time":1647831615,"id":1665904228636,"updated_at":"2022-10-16T07:10:28.636000Z","created_at":"2022-10-16T07:10:28.636000Z"},{"_id":"634bae64d297b62132299925","body":"It was working fine in 3.0.0 version on Mac. On 3.2.0 version when I ctrl+click it goes to definition but still shows popup.\r\nOne more issue on version 3.2.0, I have to add HyperlinkListener to the editor in order to make go to definition work. If no hyperlink listener is set it does nothing on mac and windows both, it just opens popup without navigating to definition. ","issue_id":1660537878592,"origin_id":1073632808,"user_origin_id":2783877,"create_time":1647851687,"update_time":1647851724,"id":1665904228640,"updated_at":"2022-10-16T07:10:28.639000Z","created_at":"2022-10-16T07:10:28.639000Z"},{"_id":"634bae64d297b62132299926","body":"> One more issue on version 3.2.0, I have to add HyperlinkListener to the editor in order to make go to definition work. If no hyperlink listener is set it does nothing on mac and windows both, it just opens popup without navigating to definition.\r\n\r\nJust a note that this particular bit was fixed in the fix for #443. The Mac-specific popup issue is still there.","issue_id":1660537878592,"origin_id":1257242137,"user_origin_id":1631766,"create_time":1664127584,"update_time":1664127584,"id":1665904228643,"updated_at":"2022-10-16T07:10:28.642000Z","created_at":"2022-10-16T07:10:28.642000Z"},{"_id":"634bae64d297b62132299927","body":"This was fixed by changing the default hyperlink mask on Macs from `ctrl` to `cmd`. This is more natural anyway. It fixes things by avoiding a collision with another standard Mac shortcut, `ctrl + click` to open the context menu.","issue_id":1660537878592,"origin_id":1257277016,"user_origin_id":1631766,"create_time":1664139040,"update_time":1664139040,"id":1665904228645,"updated_at":"2022-10-16T07:10:28.645000Z","created_at":"2022-10-16T07:10:28.645000Z"}] comment

I am using RSyntaxTexArea with "js" language support. Prior to version 3.1 **Ctrl + Click** on any variable moved cursor to its definition, but in 3.2.0 **Ctrl+Click** opens defualt popmenu...

waiting-for-feedback

I need a SASS/SCSS Syntax Highlighting Lexer. Has anyone written one? If not... what's the easiest way to do it? Steve

enhancement
syntax-highlighting

Switch-Case folding for Arduino IDE

[{"_id":"634ba40bd297b62132298fee","body":"I probably won't work on this myself, but pull requests are welcome.\n","issue_id":1660537878602,"origin_id":246161152,"user_origin_id":1631766,"create_time":1473567911,"update_time":1473567911,"id":1665901579390,"updated_at":"2022-10-16T06:26:19.390000Z","created_at":"2022-10-16T06:26:19.390000Z"}] comment

I've been told this is the best place to ask for a folding feature for each case of a switch in the Arduino IDE...

enhancement
low-priority
pr-welcome

Avoid loading fonts when first creating an RSyntaxTextArea

[{"_id":"634ba1273056137e2652ee3d","body":"Sorry, just so I'm clear - there is a user-noticeable pause when Consolas is loaded in `RTextAreaBase.getDefaultFont()`? Is this true of any font, or just Consolas (or just how RTextArea initializes the font)? Why would setting it (presumably) early in `StyleContext` mitigate things?\r\n\r\nNot that I don't believe you - just trying to understand the issue. Fonts really should load lightning fast these days!\r\n\r\nIs your suggestion something like this?\r\n\r\n```java\r\npublic static Font getDefaultFont() {\r\n Font font = UIManager.getFont(\"RTextARea.defaultFont\");\r\n if (font != null) {\r\n return font;\r\n }\r\n \/\/ Otherwise do what we currently do\r\n}\r\n```\r\n","issue_id":1660537878608,"origin_id":882996160,"user_origin_id":1631766,"create_time":1626746941,"update_time":1626746941,"id":1665900839868,"updated_at":"2022-10-16T06:13:59.867000Z","created_at":"2022-10-16T06:13:59.867000Z"},{"_id":"634ba1273056137e2652ee3e","body":"> Sorry, just so I'm clear - there is a user-noticeable pause when Consolas is loaded in `RTextAreaBase.getDefaultFont()`? Is this true of any font, or just Consolas (or just how RTextArea initializes the font)? Why would setting it (presumably) early in `StyleContext` mitigate things?\r\n> \r\n> Not that I don't believe you - just trying to understand the issue. Fonts really should load lightning fast these days!\r\n> \r\n> Is your suggestion something like this?\r\n> \r\n> ```java\r\n> public static Font getDefaultFont() {\r\n> Font font = UIManager.getFont(\"RTextARea.defaultFont\");\r\n> if (font != null) {\r\n> return font;\r\n> }\r\n> \/\/ Otherwise do what we currently do\r\n> }\r\n> ```\r\n\r\nI don\u2019t think font loading speed would be a widespread issue, no. However, our file system can have a high latency as it loads files off of a shared file system. That shared file system is great for handling massive files, but it can cause hiccups when loading small files. Therefore, we try to avoid it as much as we can, as for us it causes a noticeable stutter.\r\n\r\nAlso yes, that\u2019s exactly what I had in mind :) I think it\u2019s a nice feature in general on top of our very specific use case, as it aligns the API with the Swing look and feel API.\r\n\r\n","issue_id":1660537878608,"origin_id":885499356,"user_origin_id":1185881,"create_time":1627030772,"update_time":1627030772,"id":1665900839872,"updated_at":"2022-10-16T06:13:59.871000Z","created_at":"2022-10-16T06:13:59.871000Z"}] comment

Hello, Currently whenever I create an RSyntaxTextArea it will always load its default font (Consolas on my system). This causes a brief stall when it has to load the font...

enhancement
low-priority

Autocompletion window (Fx & Swing)

[{"_id":"634ba1533056137e2652ee73","body":"I haven't done too much with JavaFX, though I recall it being kind of buggy when I tried to embed Swing components into a JavaFX app (a very long time ago).\r\n\r\nCan you provide an [SSCCE](http:\/\/sscce.org\/) that demonstrates this behavior?\r\n","issue_id":1660537878613,"origin_id":518403791,"user_origin_id":1631766,"create_time":1565039813,"update_time":1565039813,"id":1665900883925,"updated_at":"2022-10-16T06:14:43.924000Z","created_at":"2022-10-16T06:14:43.924000Z"},{"_id":"634ba1533056137e2652ee74","body":"Here is the SSCCE, all you need is importing the Auto-completion jar file and you ready to go : \r\n\r\n```java\r\npublic class Main extends Application {\r\n private RSyntaxTextArea editorZone;\r\n private JPanel panelSwing = new JPanel(new BorderLayout());\r\n\r\n @Override\r\n public void start(Stage primaryStage){\r\n final SwingNode swingNode = new SwingNode();\r\n SwingUtilities.invokeLater(() -> initSwing(swingNode));\r\n BorderPane root = new BorderPane();\r\n root.setCenter(swingNode);\r\n Scene scene = new Scene(root, 600, 575);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n }\r\n\r\n private void initSwing(SwingNode swingNode) {\r\n swingNode.setContent(panelSwing);\r\n editorZone = new RSyntaxTextArea(20, 60);\r\n CompletionProvider provider = createCompletionProvider();\r\n AutoCompletion ac = new AutoCompletion(provider);\r\n ac.install(editorZone);\r\n ac.setShowDescWindow(true);\r\n ac.setAutoCompleteEnabled(true);\r\n ac.setAutoActivationEnabled(true);\r\n ac.setAutoCompleteSingleChoices(false);\r\n ac.setAutoActivationDelay(0);\r\n RTextScrollPane editor = new RTextScrollPane(editorZone);\r\n panelSwing.add(editor);\r\n }\r\n\r\n private CompletionProvider createCompletionProvider() {\r\n DefaultCompletionProvider provider = new DefaultCompletionProvider();\r\n provider.setAutoActivationRules(true, null);\r\n provider.addCompletion(new ShorthandCompletion(provider, \"sysout\",\"System.out.println(\", \"System.out.println(\"));\r\n provider.addCompletion(new ShorthandCompletion(provider, \"syserr\", \"System.err.println(\", \"System.err.println(\"));\r\n\r\n return provider;\r\n }\r\n\r\n public static void main(String[] args) {\r\n launch(args);\r\n }\r\n}\r\n```","issue_id":1660537878613,"origin_id":518531694,"user_origin_id":37023273,"create_time":1565074350,"update_time":1565074350,"id":1665900883928,"updated_at":"2022-10-16T06:14:43.928000Z","created_at":"2022-10-16T06:14:43.928000Z"},{"_id":"634ba1533056137e2652ee76","body":"Hi, I know that this is an old discussion, but do you finally solved the back window problem?\r\nI'm still to try place RSyntaxTextArea on JFX form and starting from your code here I don't want have the same problem you had.\r\n\r\nMany thanks","issue_id":1660537878613,"origin_id":1069677784,"user_origin_id":31792553,"create_time":1647468102,"update_time":1647468166,"id":1665900883933,"updated_at":"2022-10-16T06:14:43.932000Z","created_at":"2022-10-16T06:14:43.932000Z"}] comment

When I try to display the autocompletion window it goes back of my FX window, I tried everything but with no result ! [Here is what I get.](https://user-images.githubusercontent.com/37023273/62036002-35d69200-b1f1-11e9-9f3a-7ce6b46fbabf.png) Thanks in...

waiting-for-feedback
javafx

**Description** The `org.fife.ui.rsyntaxtextarea.DocumentRange` class should be in the sister `rtextarea` package. It might live in the wrong place due to a refactoring a while ago. Note this doesn't impact the...

bug
low-priority

Whenever any code pasted on `RSTA` with `setAutoIndent(true)`, it only auto indents the first line of the code, the others don't receive indentation. Also, it would be good if there...

enhancement

**Describe the solution you'd like** Use https://github.com/vlsi/github-actions-random-matrix for GitHub Actions matrix generation For instance, parameters like `headless=true|false`, `os=linux|windows`, `java=8|11|17`, `timezone=...`, `coverage=collect|ignore` are hard to configure manually as it would result...

enhancement

… line height configurable when word wrap is NOT enabled. Line number list is also updated. Fold indicators do *not* currently work properly - they only update in the demo...

**Describe the solution you'd like** Add code folding for Ruby. Ruby's a little different syntactically when parsing out foldable regions, but this seems like the simplest approach that would work:...

enhancement
code-folding