Sciss / SyntaxPane

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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–2023 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.3.0"

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, Dimitry Polivaev (word-wrap mode).

About

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

License:Apache License 2.0


Languages

Language:Java 66.5%Language:Lex 33.1%Language:Scala 0.3%Language:JavaScript 0.1%Language:Shell 0.0%