|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprettify.lang.Lang
prettify.lang.LangTcl
public class LangTcl
This is similar to the lang-tcl.js in JavaScript Prettify. All comments are adapted from the JavaScript Prettify. To use, include prettify.js and this file in your HTML page. Then put your code in an HTML tag like
proc foo {} {puts bar}
I copy-pasted lang-lisp.js, so this is probably not 100% accurate.
I used http://wiki.tcl.tk/1019 for the keywords, but tried to only
include as keywords that had more impact on the program flow
rather than providing convenience. For example, I included 'if'
since that provides branching, but left off 'open' since that is more
like a proc. Add more if it makes sense.
| Field Summary |
|---|
| Fields inherited from class prettify.lang.Lang |
|---|
extendedLangs, fallthroughStylePatterns, shortcutStylePatterns |
| Constructor Summary | |
|---|---|
LangTcl()
|
|
| Method Summary | |
|---|---|
static java.util.List<java.lang.String> |
getFileExtensions()
|
| Methods inherited from class prettify.lang.Lang |
|---|
getExtendedLangs, getFallthroughStylePatterns, getShortcutStylePatterns, setExtendedLangs, setFallthroughStylePatterns, setShortcutStylePatterns |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LangTcl()
| Method Detail |
|---|
public static java.util.List<java.lang.String> getFileExtensions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||