<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
<title>SWT - Java Syntax Viewer Example</title> | |
</head> | |
<body> | |
<h2>SWT Standalone Example - Java Syntax Viewer</h2> | |
<p> | |
This example demonstrates 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. | |
When the contents of the file are displayed in the editor area, notice that the keywords have been highlighted. | |
</p> | |
<h3>Running the example</h3> | |
<p> | |
Follow the <a href="swt_manual_setup.html">Manual Setup</a> | |
instructions to install and run the example from your workspace. | |
</p> | |
<p> | |
The "Main" class is <code>org.eclipse.swt.examples.javaviewer.JavaViewer</code>. | |
</p> | |
<p> | |
This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>. | |
Select the Java Syntax Viewer item from the Standalone category and click Run. | |
</p> | |
<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002. All Rights Reserved." BORDER=0 height=14 width=324></a></p> | |
</body> | |
</html> |