|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Beta public interface HighlightingBuilder
Experimental, do not use.
This builder is used to define syntax highlighting (aka code coloration) on files.
Method Summary | |
---|---|
void |
done()
Call this method only once when your are done with defining highlighting of the file. |
HighlightingBuilder |
highlight(int startOffset,
int endOffset,
TypeOfText typeOfText)
Call this method to indicate the type of text in a range. |
Method Detail |
---|
HighlightingBuilder highlight(int startOffset, int endOffset, TypeOfText typeOfText)
startOffset
- Starting position in file for this type of text. Beginning of a file starts with offset '0'.endOffset
- End position in file for this type of text.typeOfText
- see TypeOfText
values.void done()
IllegalStateException
- if you have defined overlapping highlighting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |