Last change
on this file since 25584 was 25584, checked in by davidb, 12 years ago |
Initial cut an a text edit area for GLI that supports color syntax highlighting
|
File size:
1.2 KB
|
Line | |
---|
1 | /*
|
---|
2 | * 10/03/2009
|
---|
3 | *
|
---|
4 | * AbstractMarkupTokenMaker.java - Base class for token makers for markup
|
---|
5 | * languages.
|
---|
6 | *
|
---|
7 | * This library is distributed under a modified BSD license. See the included
|
---|
8 | * RSyntaxTextArea.License.txt file for details.
|
---|
9 | */
|
---|
10 | package org.fife.ui.rsyntaxtextarea.modes;
|
---|
11 |
|
---|
12 | import org.fife.ui.rsyntaxtextarea.AbstractJFlexTokenMaker;
|
---|
13 |
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Base class for token makers for markup languages.
|
---|
17 | *
|
---|
18 | * @author Robert Futrell
|
---|
19 | * @version 1.0
|
---|
20 | */
|
---|
21 | public abstract class AbstractMarkupTokenMaker extends AbstractJFlexTokenMaker {
|
---|
22 |
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * Returns whether markup close tags should be completed.
|
---|
26 | *
|
---|
27 | * @return Whether closing markup tags are to be completed.
|
---|
28 | */
|
---|
29 | public abstract boolean getCompleteCloseTags();
|
---|
30 |
|
---|
31 |
|
---|
32 | /**
|
---|
33 | * Returns the text to place at the beginning and end of a
|
---|
34 | * line to "comment" it in a this programming language.
|
---|
35 | *
|
---|
36 | * @return The start and end strings to add to a line to "comment"
|
---|
37 | * it out.
|
---|
38 | */
|
---|
39 | public String[] getLineCommentStartAndEnd() {
|
---|
40 | return new String[] { "<!--", "-->" };
|
---|
41 | }
|
---|
42 |
|
---|
43 |
|
---|
44 | /**
|
---|
45 | * Overridden to return <code>true</code>.
|
---|
46 | *
|
---|
47 | * @return <code>true</code> always.
|
---|
48 | */
|
---|
49 | public final boolean isMarkupLanguage() {
|
---|
50 | return true;
|
---|
51 | }
|
---|
52 |
|
---|
53 |
|
---|
54 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.