<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!--NewPage--> | |
<HTML> | |
<HEAD> | |
<!-- Generated by javadoc (build 1.6.0_27) on Sat Nov 19 13:55:41 CST 2011 --> | |
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<TITLE> | |
SyntaxHighlighter (Java Prettify) | |
</TITLE> | |
<META NAME="date" CONTENT="2011-11-19"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
if (location.href.indexOf('is-external=true') == -1) { | |
parent.document.title="SyntaxHighlighter (Java Prettify)"; | |
} | |
} | |
</SCRIPT> | |
<NOSCRIPT> | |
</NOSCRIPT> | |
</HEAD> | |
<BODY BGCOLOR="white" onload="windowTitle();"> | |
<HR> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<A NAME="navbar_top"><!-- --></A> | |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_top_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SyntaxHighlighter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../prettify/Prettify.CreateSimpleLexer.html" title="class in prettify"><B>PREV CLASS</B></A> | |
<A HREF="../prettify/SyntaxHighlighterPane.html" title="class in prettify"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../index.html?prettify/SyntaxHighlighter.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="SyntaxHighlighter.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: <A HREF="#nested_classes_inherited_from_class_javax.swing.JScrollPane">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_top"></A> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<HR> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<H2> | |
<FONT SIZE="-1"> | |
prettify</FONT> | |
<BR> | |
Class SyntaxHighlighter</H2> | |
<PRE> | |
java.lang.Object | |
<IMG SRC="../resources/inherit.gif" ALT="extended by ">java.awt.Component | |
<IMG SRC="../resources/inherit.gif" ALT="extended by ">java.awt.Container | |
<IMG SRC="../resources/inherit.gif" ALT="extended by ">javax.swing.JComponent | |
<IMG SRC="../resources/inherit.gif" ALT="extended by ">javax.swing.JScrollPane | |
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>prettify.SyntaxHighlighter</B> | |
</PRE> | |
<DL> | |
<DT><B>All Implemented Interfaces:</B> <DD>java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.ScrollPaneConstants</DD> | |
</DL> | |
<HR> | |
<DL> | |
<DT><PRE>public class <B>SyntaxHighlighter</B><DT>extends javax.swing.JScrollPane</DL> | |
</PRE> | |
<P> | |
The syntax highlighter. | |
<P> | |
<P> | |
<DL> | |
<DT><B>Author:</B></DT> | |
<DD>Chan Wai Shing <cws1989@gmail.com></DD> | |
<DT><B>See Also:</B><DD><A HREF="../serialized-form.html#prettify.SyntaxHighlighter">Serialized Form</A></DL> | |
<HR> | |
<P> | |
<!-- ======== NESTED CLASS SUMMARY ======== --> | |
<A NAME="nested_class_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Nested Class Summary</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="nested_classes_inherited_from_class_javax.swing.JScrollPane"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.JScrollPane</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>javax.swing.JScrollPane.AccessibleJScrollPane, javax.swing.JScrollPane.ScrollBar</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<A NAME="nested_classes_inherited_from_class_javax.swing.JComponent"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class javax.swing.JComponent</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>javax.swing.JComponent.AccessibleJComponent</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<A NAME="nested_classes_inherited_from_class_java.awt.Container"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.Container</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>java.awt.Container.AccessibleAWTContainer</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<A NAME="nested_classes_inherited_from_class_java.awt.Component"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class java.awt.Component</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<!-- =========== FIELD SUMMARY =========== --> | |
<A NAME="field_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Field Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#content">content</A></B></CODE> | |
<BR> | |
The content of the syntax highlighter, null if there is no content so far.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="../prettify/SyntaxHighlighterPane.html" title="class in prettify">SyntaxHighlighterPane</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#highlighter">highlighter</A></B></CODE> | |
<BR> | |
The script text panel.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="../prettify/JTextComponentRowHeader.html" title="class in prettify">JTextComponentRowHeader</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#highlighterRowHeader">highlighterRowHeader</A></B></CODE> | |
<BR> | |
The gutter panel (line number).</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="../prettify/Prettify.html" title="class in prettify">Prettify</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#prettify">prettify</A></B></CODE> | |
<BR> | |
The Prettify object.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected <A HREF="../prettify/Theme.html" title="class in prettify">Theme</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#theme">theme</A></B></CODE> | |
<BR> | |
The theme.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_javax.swing.JScrollPane"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from class javax.swing.JScrollPane</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_javax.swing.JComponent"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from class javax.swing.JComponent</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_java.awt.Component"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from class java.awt.Component</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_javax.swing.ScrollPaneConstants"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from interface javax.swing.ScrollPaneConstants</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="fields_inherited_from_class_java.awt.image.ImageObserver"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Fields inherited from interface java.awt.image.ImageObserver</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
<A NAME="constructor_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Constructor Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#SyntaxHighlighter(prettify.Theme)">SyntaxHighlighter</A></B>(<A HREF="../prettify/Theme.html" title="class in prettify">Theme</A> theme)</CODE> | |
<BR> | |
Constructor.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#SyntaxHighlighter(prettify.Theme, prettify.SyntaxHighlighterPane)">SyntaxHighlighter</A></B>(<A HREF="../prettify/Theme.html" title="class in prettify">Theme</A> theme, | |
<A HREF="../prettify/SyntaxHighlighterPane.html" title="class in prettify">SyntaxHighlighterPane</A> highlighterPane)</CODE> | |
<BR> | |
Constructor.</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ========== METHOD SUMMARY =========== --> | |
<A NAME="method_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Method Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#addHighlightedLine(int)">addHighlightedLine</A></B>(int lineNumber)</CODE> | |
<BR> | |
Add highlighted line.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> java.util.List<java.lang.Integer></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#getHighlightedLineList()">getHighlightedLineList</A></B>()</CODE> | |
<BR> | |
Get the list of highlighted lines.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../prettify/SyntaxHighlighterPane.html" title="class in prettify">SyntaxHighlighterPane</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#getHighlighter()">getHighlighter</A></B>()</CODE> | |
<BR> | |
Get the SyntaxHighlighterPane (the script text panel).</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../prettify/JTextComponentRowHeader.html" title="class in prettify">JTextComponentRowHeader</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#getHighlighterRowHeader()">getHighlighterRowHeader</A></B>()</CODE> | |
<BR> | |
Get the JTextComponentRowHeader, the line number panel.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> <A HREF="../prettify/Theme.html" title="class in prettify">Theme</A></CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#getTheme()">getTheme</A></B>()</CODE> | |
<BR> | |
Get current theme.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#isGutterVisible()">isGutterVisible</A></B>()</CODE> | |
<BR> | |
Get the visibility of the gutter.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#isHighlightOnMouseOver()">isHighlightOnMouseOver</A></B>()</CODE> | |
<BR> | |
Get the status of the mouse-over highlight effect.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected static java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#readFile(java.io.File)">readFile</A></B>(java.io.File file)</CODE> | |
<BR> | |
Get the string content of a file.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#render()">render</A></B>()</CODE> | |
<BR> | |
Re-render the script text pane.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#setContent(java.io.File)">setContent</A></B>(java.io.File file)</CODE> | |
<BR> | |
Set the content of the syntax highlighter.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#setContent(java.lang.String)">setContent</A></B>(java.lang.String content)</CODE> | |
<BR> | |
Set the content of the syntax highlighter.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#setFirstLine(int)">setFirstLine</A></B>(int firstLine)</CODE> | |
<BR> | |
Set the line number of the first line.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#setGutterVisible(boolean)">setGutterVisible</A></B>(boolean visible)</CODE> | |
<BR> | |
Set the visibility of the gutter.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#setHighlightedLineList(java.util.List)">setHighlightedLineList</A></B>(java.util.List<java.lang.Integer> highlightedLineList)</CODE> | |
<BR> | |
Set highlighted lines.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#setHighlightOnMouseOver(boolean)">setHighlightOnMouseOver</A></B>(boolean highlightWhenMouseOver)</CODE> | |
<BR> | |
Set turn on the mouse-over highlight effect or not.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../prettify/SyntaxHighlighter.html#setTheme(prettify.Theme)">setTheme</A></B>(<A HREF="../prettify/Theme.html" title="class in prettify">Theme</A> theme)</CODE> | |
<BR> | |
Set the theme.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_javax.swing.JScrollPane"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class javax.swing.JScrollPane</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>createHorizontalScrollBar, createVerticalScrollBar, createViewport, getAccessibleContext, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getUI, getUIClassID, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorder, getViewportBorderBounds, isValidateRoot, isWheelScrollingEnabled, paramString, setColumnHeader, setColumnHeaderView, setComponentOrientation, setCorner, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setLayout, setRowHeader, setRowHeaderView, setUI, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportBorder, setViewportView, setWheelScrollingEnabled, updateUI</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_javax.swing.JComponent"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class javax.swing.JComponent</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.awt.Container"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.awt.Container</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate, validateTree</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.awt.Component"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.awt.Component</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<P> | |
<!-- ============ FIELD DETAIL =========== --> | |
<A NAME="field_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Field Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="highlighter"><!-- --></A><H3> | |
highlighter</H3> | |
<PRE> | |
protected <A HREF="../prettify/SyntaxHighlighterPane.html" title="class in prettify">SyntaxHighlighterPane</A> <B>highlighter</B></PRE> | |
<DL> | |
<DD>The script text panel. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="highlighterRowHeader"><!-- --></A><H3> | |
highlighterRowHeader</H3> | |
<PRE> | |
protected <A HREF="../prettify/JTextComponentRowHeader.html" title="class in prettify">JTextComponentRowHeader</A> <B>highlighterRowHeader</B></PRE> | |
<DL> | |
<DD>The gutter panel (line number). | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="theme"><!-- --></A><H3> | |
theme</H3> | |
<PRE> | |
protected <A HREF="../prettify/Theme.html" title="class in prettify">Theme</A> <B>theme</B></PRE> | |
<DL> | |
<DD>The theme. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="prettify"><!-- --></A><H3> | |
prettify</H3> | |
<PRE> | |
protected <A HREF="../prettify/Prettify.html" title="class in prettify">Prettify</A> <B>prettify</B></PRE> | |
<DL> | |
<DD>The Prettify object. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="content"><!-- --></A><H3> | |
content</H3> | |
<PRE> | |
protected java.lang.String <B>content</B></PRE> | |
<DL> | |
<DD>The content of the syntax highlighter, null if there is no content so far. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<!-- ========= CONSTRUCTOR DETAIL ======== --> | |
<A NAME="constructor_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Constructor Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="SyntaxHighlighter(prettify.Theme)"><!-- --></A><H3> | |
SyntaxHighlighter</H3> | |
<PRE> | |
public <B>SyntaxHighlighter</B>(<A HREF="../prettify/Theme.html" title="class in prettify">Theme</A> theme)</PRE> | |
<DL> | |
<DD>Constructor. | |
<P> | |
<DL> | |
<DT><B>Parameters:</B><DD><CODE>theme</CODE> - the theme for the syntax highlighter</DL> | |
</DL> | |
<HR> | |
<A NAME="SyntaxHighlighter(prettify.Theme, prettify.SyntaxHighlighterPane)"><!-- --></A><H3> | |
SyntaxHighlighter</H3> | |
<PRE> | |
public <B>SyntaxHighlighter</B>(<A HREF="../prettify/Theme.html" title="class in prettify">Theme</A> theme, | |
<A HREF="../prettify/SyntaxHighlighterPane.html" title="class in prettify">SyntaxHighlighterPane</A> highlighterPane)</PRE> | |
<DL> | |
<DD>Constructor. | |
<P> | |
<DL> | |
<DT><B>Parameters:</B><DD><CODE>theme</CODE> - the theme for the syntax highlighter<DD><CODE>highlighterPane</CODE> - the script text pane of the syntax highlighter</DL> | |
</DL> | |
<!-- ============ METHOD DETAIL ========== --> | |
<A NAME="method_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Method Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="render()"><!-- --></A><H3> | |
render</H3> | |
<PRE> | |
protected void <B>render</B>()</PRE> | |
<DL> | |
<DD>Re-render the script text pane. Invoke this when any change of setting that affect the rendering was made. | |
This will re-parse the content and set the style. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getHighlighter()"><!-- --></A><H3> | |
getHighlighter</H3> | |
<PRE> | |
public <A HREF="../prettify/SyntaxHighlighterPane.html" title="class in prettify">SyntaxHighlighterPane</A> <B>getHighlighter</B>()</PRE> | |
<DL> | |
<DD>Get the SyntaxHighlighterPane (the script text panel). | |
<p><b>Note: Normally should not operate on the SyntaxHighlighterPane directly.</b></p> | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the SyntaxHighlighterPane</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getHighlighterRowHeader()"><!-- --></A><H3> | |
getHighlighterRowHeader</H3> | |
<PRE> | |
public <A HREF="../prettify/JTextComponentRowHeader.html" title="class in prettify">JTextComponentRowHeader</A> <B>getHighlighterRowHeader</B>()</PRE> | |
<DL> | |
<DD>Get the JTextComponentRowHeader, the line number panel. | |
<p><b>Note: Normally should not operate on the JTextComponentRowHeader directly.</b></p> | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the JTextComponentRowHeader</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getTheme()"><!-- --></A><H3> | |
getTheme</H3> | |
<PRE> | |
public <A HREF="../prettify/Theme.html" title="class in prettify">Theme</A> <B>getTheme</B>()</PRE> | |
<DL> | |
<DD>Get current theme. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>the current theme</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setTheme(prettify.Theme)"><!-- --></A><H3> | |
setTheme</H3> | |
<PRE> | |
public void <B>setTheme</B>(<A HREF="../prettify/Theme.html" title="class in prettify">Theme</A> theme)</PRE> | |
<DL> | |
<DD>Set the theme. | |
<p> | |
Setting the theme will not re-parse the content, but will clear and apply the new theme on the script text pane. | |
</p> | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>theme</CODE> - the theme</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setFirstLine(int)"><!-- --></A><H3> | |
setFirstLine</H3> | |
<PRE> | |
public void <B>setFirstLine</B>(int firstLine)</PRE> | |
<DL> | |
<DD>Set the line number of the first line. E.g. if set 10, the line number will start count from 10 instead of 1. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>firstLine</CODE> - the line number of the first line</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getHighlightedLineList()"><!-- --></A><H3> | |
getHighlightedLineList</H3> | |
<PRE> | |
public java.util.List<java.lang.Integer> <B>getHighlightedLineList</B>()</PRE> | |
<DL> | |
<DD>Get the list of highlighted lines. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>a copy of the list</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setHighlightedLineList(java.util.List)"><!-- --></A><H3> | |
setHighlightedLineList</H3> | |
<PRE> | |
public void <B>setHighlightedLineList</B>(java.util.List<java.lang.Integer> highlightedLineList)</PRE> | |
<DL> | |
<DD>Set highlighted lines. Note that this will clear all previous recorded highlighted lines. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>highlightedLineList</CODE> - the list that contain the highlighted lines</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="addHighlightedLine(int)"><!-- --></A><H3> | |
addHighlightedLine</H3> | |
<PRE> | |
public void <B>addHighlightedLine</B>(int lineNumber)</PRE> | |
<DL> | |
<DD>Add highlighted line. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>lineNumber</CODE> - the line number to highlight</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isGutterVisible()"><!-- --></A><H3> | |
isGutterVisible</H3> | |
<PRE> | |
public boolean <B>isGutterVisible</B>()</PRE> | |
<DL> | |
<DD>Get the visibility of the gutter. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true if the gutter is visible, false if not</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setGutterVisible(boolean)"><!-- --></A><H3> | |
setGutterVisible</H3> | |
<PRE> | |
public void <B>setGutterVisible</B>(boolean visible)</PRE> | |
<DL> | |
<DD>Set the visibility of the gutter. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>visible</CODE> - true to make visible, false to hide it</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isHighlightOnMouseOver()"><!-- --></A><H3> | |
isHighlightOnMouseOver</H3> | |
<PRE> | |
public boolean <B>isHighlightOnMouseOver</B>()</PRE> | |
<DL> | |
<DD>Get the status of the mouse-over highlight effect. Default is on. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true if turned on, false if turned off</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setHighlightOnMouseOver(boolean)"><!-- --></A><H3> | |
setHighlightOnMouseOver</H3> | |
<PRE> | |
public void <B>setHighlightOnMouseOver</B>(boolean highlightWhenMouseOver)</PRE> | |
<DL> | |
<DD>Set turn on the mouse-over highlight effect or not. | |
If set true, there will be a highlight effect on the line that the mouse cursor currently is pointing on (on the script text panel only, not on the line number panel). | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>highlightWhenMouseOver</CODE> - true to turn on, false to turn off</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setContent(java.io.File)"><!-- --></A><H3> | |
setContent</H3> | |
<PRE> | |
public void <B>setContent</B>(java.io.File file) | |
throws java.io.IOException</PRE> | |
<DL> | |
<DD>Set the content of the syntax highlighter. Better set it last after setting all other settings. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>file</CODE> - the file to read | |
<DT><B>Throws:</B> | |
<DD><CODE>java.io.IOException</CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setContent(java.lang.String)"><!-- --></A><H3> | |
setContent</H3> | |
<PRE> | |
public void <B>setContent</B>(java.lang.String content)</PRE> | |
<DL> | |
<DD>Set the content of the syntax highlighter. It is better to set other settings first and set this the last. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>content</CODE> - the content to set</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="readFile(java.io.File)"><!-- --></A><H3> | |
readFile</H3> | |
<PRE> | |
protected static java.lang.String <B>readFile</B>(java.io.File file) | |
throws java.io.IOException</PRE> | |
<DL> | |
<DD>Get the string content of a file. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>file</CODE> - the file to retrieve the content from | |
<DT><B>Returns:</B><DD>the string content | |
<DT><B>Throws:</B> | |
<DD><CODE>java.io.IOException</CODE> - error occured, either it is not a valid file or failed to read the file</DL> | |
</DD> | |
</DL> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<HR> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<A NAME="navbar_bottom"><!-- --></A> | |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_bottom_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SyntaxHighlighter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../prettify/Prettify.CreateSimpleLexer.html" title="class in prettify"><B>PREV CLASS</B></A> | |
<A HREF="../prettify/SyntaxHighlighterPane.html" title="class in prettify"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../index.html?prettify/SyntaxHighlighter.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="SyntaxHighlighter.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: <A HREF="#nested_classes_inherited_from_class_javax.swing.JScrollPane">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_bottom"></A> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<HR> | |
</BODY> | |
</HTML> |