Questions tagged [rsyntaxtextarea]

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

Taken from https://github.com/bobbylight/RSyntaxTextArea

RSyntaxTextArea is a customizable, syntax highlighting text component for Java Swing applications. Out of the box, it supports syntax highlighting for over 30 programming languages, code folding, search and replace, and has add-on libraries for code completion and spell checking. Syntax highlighting for additional languages can be added via tools such as JFlex.

RSyntaxTextArea is available under a modified BSD license. For more information, visit http://fifesoft.com/rsyntaxtextarea.

30 questions
3
votes
2 answers

RSyntaxTextArea not showing line numbers

I'm using RSyntaxTextArea for a minimized IDE I'm working on, Everything seems to be really working smoothly except for the line numbering, which I couldn't really make it show: RSyntaxTextArea textArea = new RSyntaxTextArea(20,…
geekybedouin
  • 549
  • 1
  • 11
  • 23
3
votes
0 answers

JAVA:SeaGlass LAF & RSyntaxTextArea Package

when i using SeaGlass LAF all things is ok,but when i request a page that have an object from RSyntaxTextArea Package gives me an error,i've no problem with nimbus and all thing works perfectly... note:i use this method at the main class to changing…
A.R.H
  • 383
  • 2
  • 6
  • 25
2
votes
1 answer

Code completion not working for RSyntaxTextArea

I got RSyntaxTextArea working in JavaFX using a SwingNode, but can't seem to get code completion to work. So to remove any JavaFX related problems I implemented a Java/Swing only version with no JavaFX whatsoever. Here's that code: package…
user1300214
2
votes
2 answers

Java: Importing the RSyntaxTextArea library?

I need to import the RSyntaxTextArea to a project of mine, but i can't seem to get it to work! The homepage is at: http://fifesoft.com/rsyntaxtextarea/ And the download: http://sourceforge.net/projects/rsyntaxtextarea/ But when i download it i get…
qwerty
  • 35
  • 4
2
votes
1 answer

Highlighting part of ShorthandCompletion in RSyntaxTextArea

I have written a code calling calling RSyntaxTextArea and autocomplete. When the user enters function, the word will be replaces with function<>. I want to highlight the word "label" in the below code, so that the user knows they have to enter a…
Artemis
  • 3,271
  • 2
  • 20
  • 33
1
vote
1 answer

Open autocompletion popup under RSyntaxTextArea when typing any key

Currently I use in my project RSyntaxTextArea with Autocomplete. I can type a text and Ctrl+Space to open the autocomplete box. But I would like it to open by itself when I type the first letters of a variable like in Visual Studio Code. I can't…
idIA Tech
  • 23
  • 3
1
vote
2 answers

Groovy classpath issue

I have run the following code in this page RsyntaxTextArea using Java and i run the program exactly the way that is been mentioned in this site.And i'm getting the output as intended. But i have tried to modify this java code to Groovy code,…
Ant's
  • 13,545
  • 27
  • 98
  • 148
1
vote
1 answer

Java Nimbus Look & Feel RSyntaxTextArea Background Color

I'm using RSyntaxTextArea which ultimately extends from JTextArea. When I change the look and feel to Nimbus, the text area is not affected the same way as the rest of the GUI which doesn't look nice. This is the Nimbus theme code I used: import…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
1
vote
0 answers

Java RSTALanguageSupport : Cannot register RSyntaxTextArea

I am using RSyntaxTextArea and RSTALanguageSupport for a project. I tried to register the RSyntaxTextArea by doing : textArea = new…
Hung Truong
  • 401
  • 1
  • 3
  • 12
1
vote
0 answers

How to add new keywords to RSyntaxTextArea

I am using RSyntaxTextArea in my swing application. I want to create an editor for Gherkin language. How can I add new keywords to extend the language support.
DevX
  • 490
  • 6
  • 23
1
vote
1 answer

RSyntaxTextArea numbers followed by letters are highlighted in a different way [Java]

I know my qustion is not that clear but I'll try to explain it here: In my java application I am using the RSyntaxTextArea library. When I try to write a string composed by some digits followed by letters (i.e. 2c, 7x, 12g) this string changes…
Pino
  • 619
  • 1
  • 8
  • 25
1
vote
1 answer

Can't find bundle for base name org.fife.ui.rsyntaxtextarea.RSyntaxTextArea, locale sv_SE

I am trying out an example for RSyntaxTextArea found here http://fifesoft.com/rsyntaxtextarea/examples/example1.php import java.awt.*; import javax.swing.*; import org.fife.ui.rtextarea.*; import org.fife.ui.rsyntaxtextarea.*; /** * A…
user955732
  • 1,330
  • 3
  • 21
  • 48
1
vote
1 answer

JMenuBar Not Receiving Key Combinations From RSyntaxTextArea

I'm having trouble having keypress events from a textarea reach a JMenBar. I have the menu bar generated at runtime from an XML file and the text area is created like so: @Override public void createUI() { this.textArea = new RSyntaxTextArea(25,…
ExPixel
  • 118
  • 1
  • 5
0
votes
0 answers

Line alignment RSyntaxTextArea and RTextScrollPane

In my code I'm using RSyntaxTextArea and RTextScrollPane but the line numbers of the RTextScrollPane are not perfectly aligned with the lines of the RSyntaxTextArea. Here is my code : RSyntaxTextArea tabTextArea = new…
TRKirua
  • 11
  • 2
0
votes
1 answer

I cannot change the Gutter color on RSyntaxTextArea library

Good afternoon everyone, I am not extremely experienced in coding, after long experimentation with RSyntaxTextArea I am still unable to change the Gutter. I cannot figure out how to code the Gutter Color, I would like to change the Gutter color to…
1
2