Questions tagged [jsyntaxpane]

JSyntaxPane is a very simple to use and extend JEditorKit that supports few languages. The main goal is to make it easy to have nice looking Java Swing Editors with support for Syntax Highlighting.

JSyntaxPane is a very simple to use and extend JEditorKit that supports few languages. The main goal is to make it easy to have nice looking Java Swing Editors with support for Syntax Highlighting.

https://code.google.com/p/jsyntaxpane/

4 questions
6
votes
1 answer

Keeping track of state in JFlex

I'm writing a custom flex file to generate a lexer for use with JSyntaxpane. The custom language I need to lex has different states that can be embedded into each other in a kind of stack. I.E you could be writing an expression that has a single…
Tom Martin
  • 2,498
  • 3
  • 29
  • 37
0
votes
1 answer

Is inheritance possible in JFlex?

I'm fairly new to JFlex and JSyntaxPane although I have managed to hack together a lexer for XPath. The problem I find myself in is that I'm working on a project that supports a subset of XPath with a few proprietary features. Nasty I know. If this…
Tom Martin
  • 2,498
  • 3
  • 29
  • 37
0
votes
1 answer

Unable to get jysntaxpane support for python in an JEditorPane

I have an SWT composite within which I am trying to embed an Swing JEditorPane which should have Python support in it. Im using jSyntaxPane for this. I am able to read the complete .py file and display it in the editor. However the syntax/colour…
Lishus
  • 15
  • 7
0
votes
1 answer

JEditorPane syntax highlighting using jsyntaxpane

I have a JEditorPane in my application and I was loading java files into it using jsyntaxpane and the following code and it was working perfectly: to highlight jsyntaxpane.DefaultSyntaxKit.initKit(); textarea.setContentType("text/java"); to load…
flexinIT
  • 431
  • 2
  • 10
  • 28