blob: 7563f8610ffc99eaf841e1bc6e8c96033238c74a [file] [log] [blame]
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>SWT - Java Syntax Viewer Example</title>
<h2>SWT standalone example - Java Syntax Viewer</h2>
This example shows how to implement a user-defined line styler for the StyledText widget.
The example provides a typical editor interface.
To see the effect of the line styler, open a *.java file, and
when the contents of the file are displayed in the editor area, notice that the keywords have been highlighted.
<h3>Running the example</h3>
Follow the <a href="swt_manual_setup.html">SWT standalone examples setup</a>
instructions to install and run the example from your workspace.
The "Main" class is <code>org.eclipse.swt.examples.javaviewer.JavaViewer</code>.
This example can also be run using the <a href="../../org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html">Example Launcher</a>.
Select the <strong>Java Syntax Viewer</strong> item from the <strong>Standalone</strong> category and click <strong>Run</strong>.
<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2003. All Rights Reserved." BORDER=0 height=14 width=324></a></p>