| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
| <html> | |
| <head> | |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > | |
| <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 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. | |
| </p> | |
| <h3>Running the example</h3> | |
| <p> | |
| Follow the <a href="swt_manual_setup.html">SWT standalone examples 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 <strong>Java Syntax Viewer</strong> item from the <strong>Standalone</strong> category and click <strong>Run</strong>. | |
| </p> | |
| </body> | |
| </html> |