pax_global_header 0000666 0000000 0000000 00000000064 12574170037 0014520 g ustar 00root root 0000000 0000000 52 comment=238bd0e0f373ad449259ebd22745bc76068ed166
RSyntaxTextArea-2.5.8/ 0000775 0000000 0000000 00000000000 12574170037 0014602 5 ustar 00root root 0000000 0000000 RSyntaxTextArea-2.5.8/.classpath 0000664 0000000 0000000 00000001425 12574170037 0016567 0 ustar 00root root 0000000 0000000
RSyntaxTextArea-2.5.8/.gitignore 0000664 0000000 0000000 00000000125 12574170037 0016570 0 ustar 00root root 0000000 0000000 ant-classes
bin
dist
javadoc
rsyntaxtextarea_*.zip
*.java~
build
.gradle
/.settings/
RSyntaxTextArea-2.5.8/.project 0000664 0000000 0000000 00000001010 12574170037 0016241 0 ustar 00root root 0000000 0000000
RSyntaxTextArea
org.eclipse.jdt.core.javabuilder
org.springsource.ide.eclipse.gradle.core.nature
org.eclipse.jdt.core.javanature
org.eclipse.jdt.groovy.core.groovyNature
RSyntaxTextArea-2.5.8/.settings/ 0000775 0000000 0000000 00000000000 12574170037 0016520 5 ustar 00root root 0000000 0000000 RSyntaxTextArea-2.5.8/.settings/gradle/ 0000775 0000000 0000000 00000000000 12574170037 0017756 5 ustar 00root root 0000000 0000000 RSyntaxTextArea-2.5.8/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs 0000664 0000000 0000000 00000000666 12574170037 0030707 0 ustar 00root root 0000000 0000000 #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences
#Fri Apr 24 23:23:42 EDT 2015
build.family.org.gradle.tooling.model.eclipse.HierarchicalEclipseProject=;
org.springsource.ide.eclipse.gradle.classpath.enableSorting=true
org.springsource.ide.eclipse.gradle.classpath.jar.remap.gradle.to.maven=true
org.springsource.ide.eclipse.gradle.linkedresources=
org.springsource.ide.eclipse.gradle.rootprojectloc=
RSyntaxTextArea-2.5.8/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs 0000664 0000000 0000000 00000000174 12574170037 0031407 0 ustar 00root root 0000000 0000000 #org.springsource.ide.eclipse.gradle.core.actions.GradleRefreshPreferences
#Sat Jul 19 01:32:42 EDT 2014
enableDSLD=true
RSyntaxTextArea-2.5.8/.travis.yml 0000664 0000000 0000000 00000000722 12574170037 0016714 0 ustar 00root root 0000000 0000000 env:
- DISPLAY=:99.0
# xvfb is required to simulate a windowing system for Swing GUI tests.
# http://ecmendenhall.github.io/blog/blog/2013/05/28/two-travis-ci-solutions/
before_install:
- "/bin/sh -e /etc/init.d/xvfb start"
# Oldest JDK supported by Travis CI
jdk:
- openjdk6
script:
- ./gradlew assemble -x signArchives -x uploadArchives
- ./gradlew check
# Update coverage info on coveralls.io
after_success:
- ./gradlew jacocoTestReport coveralls
RSyntaxTextArea-2.5.8/README.md 0000664 0000000 0000000 00000010162 12574170037 0016061 0 ustar 00root root 0000000 0000000 [](https://travis-ci.org/bobbylight/RSyntaxTextArea)
[](https://coveralls.io/r/bobbylight/RSyntaxTextArea)
RSyntaxTextArea is a customizable, syntax highlighting text component for Java Swing applications. Out of
the box, it supports syntax highlighting for 40+ 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](https://github.com/bobbylight/RSyntaxTextArea/wiki) via tools such as [JFlex](http://jflex.de).
RSyntaxTextArea is available under a [modified BSD license](https://github.com/bobbylight/RSyntaxTextArea/blob/master/src/main/dist/RSyntaxTextArea.License.txt).
For more information, visit [http://bobbylight.github.io/RSyntaxTextArea/](http://bobbylight.github.io/RSyntaxTextArea/).
Available in the [Maven Central repository](http://search.maven.org/#search%7Cga%7C1%7Crsyntaxtextarea%20jar) (`com.fifesoft:rsyntaxtextarea:XXX`).
# Building
RSyntaxTextArea uses [Gradle](http://gradle.org/) to build. To compile, run
all unit tests, and create the jar, run:
./gradlew build
Note that RSTA only requires Java 5. To that end, the boot classpath will be set to accommodate
this if a variable `java5CompileBootClasspath` is set to the location of `rt.jar` in a Java 5 JDK.
This can be added to `/gradle.properties` if desired, to avoid diffs in the project's
`gradle.properties`.
When building with Java 8 or later, the `javadoc` task currently prints many warnings about Javadoc
"issues." This is because
[doclint](http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html)
is enabled by default in that release of Java. These warnings are harmless, and in a future
release will be cleaned up.
# Example Usage
RSyntaxTextArea is simply a subclass of JTextComponent, so it can be dropped into any Swing application with ease.
```java
import javax.swing.*;
import org.fife.ui.rtextarea.*;
import org.fife.ui.rsyntaxtextarea.*;
public class TextEditorDemo extends JFrame {
public TextEditorDemo() {
JPanel cp = new JPanel(new BorderLayout());
RSyntaxTextArea textArea = new RSyntaxTextArea(20, 60);
textArea.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);
textArea.setCodeFoldingEnabled(true);
RTextScrollPane sp = new RTextScrollPane(textArea);
cp.add(sp);
setContentPane(cp);
setTitle("Text Editor Demo");
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
setLocationRelativeTo(null);
}
public static void main(String[] args) {
// Start all Swing applications on the EDT.
SwingUtilities.invokeLater(new Runnable() {
public void run() {
new TextEditorDemo().setVisible(true);
}
});
}
}
```
# Sister Projects
RSyntaxTextArea provides syntax highlighting, code folding, and many other features out-of-the-box, but when building a code editor you often want to go further. Below is a list of small add-on libraries that add more complex functionality:
* [AutoComplete](https://github.com/bobbylight/AutoComplete) - Adds code completion to RSyntaxTextArea (or any other JTextComponent).
* [RSTALanguageSupport](https://github.com/bobbylight/RSTALanguageSupport) - Code completion for RSTA for the following languages: Java, JavaScript, HTML, PHP, JSP, Perl, C, Unix Shell. Built on both RSTA and AutoComplete.
* [SpellChecker](https://github.com/bobbylight/SpellChecker) - Adds squiggle-underline spell checking to RSyntaxTextArea.
* [RSTAUI](https://github.com/bobbylight/RSTAUI) - Common dialogs needed by text editing applications: Find, Replace, Go to Line, File Properties.
# Getting Help
* Add an issue on GitHub
* Peruse [the wiki](https://github.com/bobbylight/RSyntaxTextArea/wiki)
* Ask in the [project forum](http://fifesoft.com/forum/)
* Check the project's [home page](http://bobbylight.github.io/RSyntaxTextArea/)
RSyntaxTextArea-2.5.8/build.gradle 0000664 0000000 0000000 00000014531 12574170037 0017065 0 ustar 00root root 0000000 0000000 ['java', 'osgi', 'distribution', 'maven', 'signing'].each { apply plugin: it }
// Jacoco and a coveralls upload plugin needed for publishing coverage results
['jacoco', 'com.github.kt3k.coveralls'].each { apply plugin: it }
group = 'com.fifesoft'
archivesBaseName = 'rsyntaxtextarea'
dependencies {
testCompile 'junit:junit:4.11'
}
// Regenerate local gradlew
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}
// Add coveralls plugin to this build's classpath
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'
}
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
compileJava {
sourceCompatibility javaVersion
targetCompatibility javaVersion
options.debug = true
options.debugOptions.debugLevel = 'source,vars,lines'
// Most folks will compile with the latest JDK available, but official builds
// use a Java 5 JDK. Add this property to gradle.properties for boot classpath
if (project.hasProperty('java5CompileBootClasspath')) {
if (new File(java5CompileBootClasspath).isFile()) {
println "Bootstrap classpath when compiling Java: ${java5CompileBootClasspath}"
options.bootClasspath = java5CompileBootClasspath
}
else {
println "Warning: Specified java5CompileBootClasspath does not exist: ${java5CompileBootClasspath}"
}
}
options.compilerArgs << "-Xlint:deprecation"
}
ext.sharedManifest = manifest {
attributes('Specification-Title': 'RSyntaxTextArea',
'Specification-Version': version,
'Implementation-Title': 'org.fife.ui',
'Implementation-Version': version,
// Not sure why Require-Capability is not being added by the osgi plugin...
'Require-Capability': 'osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=' + javaVersion + '))"')
}
jar {
manifest { from sharedManifest }
}
// We use "distributions" to create the zip files uploaded to SourceForge
distributions {
main {
baseName = 'rsyntaxtextarea'
contents {
from { [ 'build/libs', 'distfiles' ] }
rename 'RSyntaxTextArea-.*\\.jar', 'rsyntaxtextarea.jar'
}
}
src {
baseName = 'rsyntaxtextarea'
}
}
distZip.classifier = null
distZip.dependsOn jar
srcDistZip.classifier = 'src'
srcDistZip {
from projectDir
include 'src/**/*'
include 'build.gradle'
include '.classpath'
include '.project'
include 'gradle.properties'
include 'gradle/**/*'
include 'gradlew*'
include 'README.md'
include '.settings/**'
}
task buildSourceForgeZips << {
println "Building zip files for SourceForge"
}
buildSourceForgeZips.dependsOn clean, jar, distZip, srcDistZip
// Stuff to generate and upload Maven artifacts
task javadocJar (type: Jar, dependsOn: javadoc) {
manifest { from sharedManifest }
classifier = 'javadoc'
from javadoc.destinationDir
}
task sourceJar (type: Jar) {
manifest { from sharedManifest }
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives jar, javadocJar, sourceJar
}
signing {
// Don't require signing for e.g. ./gradlew install
required { gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
repositories {
mavenCentral()
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
if (project.hasProperty('upload') && Boolean.parseBoolean(upload)) { // gradlew -Pupload=true
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
}
else {
repository(url: 'file:///' + projectDir + '/../localMavenRepo')
}
pom {
groupId = 'com.fifesoft'
name = 'rsyntaxtextarea'
project {
parent {
groupId 'org.sonatype.oss'
artifactId 'oss-parent'
version '7'
relativePath ''
}
groupId 'com.fifesoft'
artifactId 'rsyntaxtextarea'
packaging 'jar'
name 'rsyntaxtextarea'
description 'RSyntaxTextArea is the syntax highlighting text editor for Swing applications. ' +
'Features include syntax highlighting for 40+ languages, code folding, code completion, ' +
'regex find and replace, macros, code templates, undo/redo, line numbering and bracket ' +
'matching.'
inceptionYear '2003'
url 'http://www.fifesoft.com/rsyntaxtextarea/'
licenses {
license {
name 'Modified BSD License'
url 'http://fifesoft.com/rsyntaxtextarea/RSyntaxTextArea.License.txt'
distribution 'repo'
}
}
scm {
url 'https://github.com/bobbylight/RSyntaxTextArea'
connection 'scm:git:git://github.com/bobbylight/RSyntaxTextArea'
developerConnection 'scm:git:git@github.com:bobbylight/RSyntaxTextArea'
if (!project.version.endsWith('-SNAPSHOT')) {
tag project.version
}
}
developers {
developer {
name 'Robert Futrell'
url 'http://www.fifesoft.com'
organization = 'Fifesoft' /* https://issues.gradle.org/browse/GRADLE-1200 */
organizationUrl 'http://www.fifesoft.com/'
roles {
role 'architect'
role 'developer'
}
timezone '0'
}
}
// Says to enforce 1.5 compatibility when building
// Doesn't work as of Gradle 2.0 due to a Groovy bug; see
// http://jira.codehaus.org/browse/GROOVY-7023
// For now, append it via XML directly
/*
build {
plugins {
plugin {
artifactId 'maven-compiler-plugin'
version '2.3.2'
executions {
execution {
id 'default-compile'
configuration {
source '1.5'
target '1.5'
}
}
}
}
}
}
*/
withXml {
def pluginNode = asNode().appendNode('build').appendNode('plugins').appendNode('plugin')
pluginNode.appendNode('artifactId', 'maven-compiler-plugin')
pluginNode.appendNode('version', '2.3.2')
def executionNode = pluginNode.appendNode('executions').appendNode('execution')
executionNode.appendNode('id', 'default-compile')
executionNode.appendNode('configuration').appendNode('source', '1.5').
parent().appendNode('target', '1.5')
}
}
}
}
}
}
RSyntaxTextArea-2.5.8/gradle.properties 0000664 0000000 0000000 00000000166 12574170037 0020161 0 ustar 00root root 0000000 0000000 # Note that Maven- and signing-related properties are in /gradle.properties
javaVersion=1.5
version=2.5.8
RSyntaxTextArea-2.5.8/gradle/ 0000775 0000000 0000000 00000000000 12574170037 0016040 5 ustar 00root root 0000000 0000000 RSyntaxTextArea-2.5.8/gradle/wrapper/ 0000775 0000000 0000000 00000000000 12574170037 0017520 5 ustar 00root root 0000000 0000000 RSyntaxTextArea-2.5.8/gradle/wrapper/gradle-wrapper.jar 0000664 0000000 0000000 00000142575 12574170037 0023150 0 ustar 00root root 0000000 0000000 PK
SC META-INF/ PK
SC4= U META-INF/MANIFEST.MFMLK-.
K-*ϳR03-IM+I,
dZ)%b"i5 PK
SC org/ PK
SC org/gradle/ PK
SC org/gradle/wrapper/ PK
SChdf # org/gradle/wrapper/Download$1.class}M
0h5Z+v/׆p!.