info.bliki.wiki.tags
Class SourceTag
java.lang.Object
info.bliki.htmlcleaner.TagToken
info.bliki.htmlcleaner.TagNode
info.bliki.wiki.tags.HTMLTag
info.bliki.wiki.tags.SourceTag
- All Implemented Interfaces:
- BaseToken, IBodyTag, INoBodyParsingTag, java.lang.Cloneable
public class SourceTag
- extends HTMLTag
- implements INoBodyParsingTag
Allows source code to be syntax highlighted on the wiki pages.
The syntax is similar to this syntax
highlighting extension.
Methods inherited from class info.bliki.htmlcleaner.TagNode |
addAllowedAttribute, addAttribute, addChild, addChildren, addItemForMoving, addObjectAttribute, clone, getAllowedAttributes, getAttributes, getBodyString, getBodyString, getChildren, getItemsToMove, getObjectAttributes, getParent, isAllowedAttribute, isFormed, makeCopy, removeAllowedAttribute, serialize, setFormed, setItemsToMove, setParent |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
SOURCE_START_1
protected static final java.lang.String SOURCE_START_1
- See Also:
- Constant Field Values
SOURCE_START_2
protected static final java.lang.String SOURCE_START_2
- See Also:
- Constant Field Values
SOURCE_END
protected static final java.lang.String SOURCE_END
- See Also:
- Constant Field Values
SourceTag
public SourceTag()
renderHTML
public void renderHTML(ITextConverter converter,
java.lang.Appendable writer,
IWikiModel model)
throws java.io.IOException
- Overrides:
renderHTML
in class HTMLTag
- Throws:
java.io.IOException
isReduceTokenStack
public boolean isReduceTokenStack()
- Overrides:
isReduceTokenStack
in class TagToken
getParents
public java.lang.String getParents()
- Description copied from class:
TagToken
- Get the allowed parent tags for this tag
- Overrides:
getParents
in class TagNode
- Returns:
null
if no parent tags are allowed
getSourceType
public static java.lang.String getSourceType(java.lang.String src)
- Determine the source code type by heuristics. If nothing found take the
xml
formatter.
- Parameters:
src
- the source code snippet
- Returns:
- the source code language
Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.