Skip to content

A simple to use Swing JEditorKit component supporting syntax highlighting for various languages. Issue tracker: https://codeberg.org/sciss/SyntaxPane/issues

License

Notifications You must be signed in to change notification settings

dpolivaev/SyntaxPane

 
 

Repository files navigation

SyntaxPane

Build Status Maven Central

Statement

SyntaxPane is an extension to Java Swing's JEditorKit component which adds syntax highlighting support for various languages, including Scala and Java. The original project JSyntaxPane can be found on google-code. This is a fork from the 0.9.6 branch.

The original project is (C)opyright by Ayman Al-Sairafi and released under the Apache License, Version 2.0.

All changes, reworkings and extensions in SyntaxPane (C)opyright 2011–2022 by Hanns Holger Rutz and contributors. Released under that same license.

Supported languages

Find here a list of all the supported languages.

Linking

The group-id and version have been adjusted to use my name space at Maven Central:

"de.sciss" % "syntaxpane" % v

The current version v is "1.2.1"

Building

JSyntaxPane builds with sbt 1.x. The source code is purely Java, so no Scala compilation is run. The project uses the sbt-jflex plugin v0.4.0, which in turn uses JFlex 1.7.0 to generate the lexer Java sources for the supported languages.

To build run sbt compile. To run a demo application, run sbt test:run. Alternatively, you can build and run the test with

sbt package test:package
java -cp target/syntaxpane-<version>.jar:target/syntaxpane-<version>-tests.jar de.sciss.syntaxpane.SyntaxTester

Contributing

Please see the file CONTRIBUTING.md for details.

The people with the following GitHub handles and names have contributed (after the fork), thank you: mattiaslundstrom, alexeyr, ShalokShalom, Qualtagh, karlvr, Patrick Guermonprez.

About

A simple to use Swing JEditorKit component supporting syntax highlighting for various languages. Issue tracker: https://codeberg.org/sciss/SyntaxPane/issues

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 66.5%
  • Lex 33.1%
  • Other 0.4%