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
0
votes
1 answer

How to setup RSyntaxTextArea?

I'm trying to set up the Github open-source package 'RSyntaxTextArea' and am struggling to understand how to do it. Please can I get help? I've downloaded the zip file from Sourceforge -…
0
votes
1 answer

Set syntax highlighting for existing language using RSyntaxTextArea

I'm using RSyntaxTextArea and I found a guide on syntax highlighting here. However, I have the simple requirement that I only need to modify the list of highlighted keywords (and or functions) from an existing language syntax highlighting style…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
0
votes
1 answer

Expanding a node of a JTree minimizes GridBagLayout

I have created a simple Swing application which currently consists of a JToolBar, a JTree and a RSyntaxTextArea, all inside a GridBagLayout. The JTree has currently only one top node and that has only one child node. Complete UI with JToolBar,…
Alexander Leithner
  • 3,169
  • 22
  • 33
0
votes
0 answers

Using custom Swing class for "Surround With"

I have a custom JTextArea and want to surround it with a custom JScrollPane. Unfortunately, the form designer only suggests using the regular JScrollPane for surrounding and doesn't seem to give me the option to define a custom object like the…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
0
votes
0 answers

How to tokenize a text using RSyntaxText TokenMaker?

I would like to just tokenize a text using RSyntaxtText's TokenMaker class. TokenMaker.getTokenList looks promising, however it only works for a single line and I'm a little bit worried that tokenizing a complete file isn't just calling this method…
mstrap
  • 16,808
  • 10
  • 56
  • 86
0
votes
1 answer

Why does my caret jump around?

I'm using RSyntaxTextArea together with a custom TokenMaker. The TokerMaker seems to be working well in the sense that the highlighting is working as expected. For example, in the line "class Fibonacci", class is highlighted blue, since it's a…
KeyboardDrummer
  • 577
  • 5
  • 21
0
votes
1 answer

Text inputted in RSyntaxTextArea shown with strange encoding

In my project I want to have a built in editor for java source code, with auto completion and syntax highlighting and I chose the RSyntaxTextArea for that. I tried to run the minimalistic examples from the project website, but as soon as I use the…
NonSense
  • 61
  • 1
  • 3
0
votes
1 answer

RSyntaxTextArea Custom Language JFlex

I'm trying to use JFlex to add custom language highlighting to RSyntaxTextArea. However, the moment I type a character I get an Index Out of Bounds Exception: http://pastie.org/private/ygjyj4y5nludeu3dn1xug This occurs even if I use the example…
0
votes
2 answers

Any alternate to RSyntaxTextArea in Javafx?

I am working on a code editor for java which will be used in Parallel Computing and Distributed Computing. I'm looking for an alternate to RSyntaxTextArea in Javafx, bcz i tried to implement it in Javafx and it is not working well, like sometimes…
DeepSidhu1313
  • 805
  • 15
  • 31
0
votes
1 answer

How to display the number of rows to the component side RSyntaxTextArea

How to display the number of lines next to the component -> RSyntaxTextArea The code below works, but I need to use the specific component in place of my frame, when I do this, the lines next to disappear. /* * To change this license header, choose…
0
votes
1 answer

rsyntaxtextarea component add netbeans

I'm using rsyntaxtextarea , i've added it to Netbeans palette, here it has two components, An RSyntaxTextArea is the main text editor class. It extends JTextArea, so it has all the standard methods you'd expect from a Swing text component, plus…
cypronmaya
  • 520
  • 1
  • 11
  • 24
-1
votes
1 answer

RSyntaxTextArea always showing white color for number column

If someone can help with this issues please
-1
votes
1 answer

Combo box items are hidden behind other controls.

error screenshot: The JComboBox items are obscured by RSyntaxTextArea in programs created with Java Swing. This symptom does not occur when running the same program on a mac. It only occurs in the windows environment. Could someone give me some…
이연구
  • 3
  • 2
-1
votes
1 answer

Is there a way to have a gap between the line separating line numbers and the code?

As the title says - I am trying to figure out a way to make a small gap, say 5 pixels, between the line separating line numbers and the source code in a RSyntaxTextArea instance of my editor. I was looking at the API and found nothing... NOTE: I am…
DejanLekic
  • 18,787
  • 4
  • 46
  • 77
-1
votes
1 answer

RSyntaxTextArea NullPointerException when adding new language

I'm trying to add a custom language to RSyntaxTextArea and I keep getting NullPointerException, I don't know the reason since I followed all the steps on http://fifesoft.com/rsyntaxtextarea/doc/CustomSyntaxHighlighting.html The custom syntax class:…
Debels
  • 167
  • 1
  • 3
  • 15
1
2