|
Class: JavaScriptSyntaxHighlighter
Object
|
+--Scanner
|
+--JavaScriptScanner
|
+--JavaScriptParser
|
+--JavaScriptSyntaxHighlighter
- Package:
- stx:libjavascript
- Category:
- Languages-JavaScript-Compiling & Parsing
- Version:
- rev:
1.40
date: 2019/03/30 11:44:31
- user: cg
- file: JavaScriptSyntaxHighlighter.st directory: libjavascript
- module: stx stc-classLibrary: libjavascript
api highlighting
-
formatClassDefinition: aString in: aClass elementsInto: elements
-
format (recolor) a class definition expression in a given class.
Return the text containing font changes and color information.
-
formatFileContents: aString elementsInto: elementsCollection
-
format (recolor) a file's contents.
Return the text containing font changes and color information.
Here, nothing is done ,just for protocol completeness
-
formatMethod: aMethodOrNil source: aString in: aClass using: preferencesOrNil elementsInto: elements
-
-
formatMethodSource: aString in: aClass using: preferencesOrNil
-
format (recolor) a method in a given class.
Return the text containing font changes and color information.
highlighting
-
format: aString with: aBlock in: aClass
-
format (recolor) a method in a given class.
Return the text containing font changes and color information.
-
format: aString with: aBlock in: aClass using: preferencesOrNil
-
format (recolor) a method in a given class.
Return the text containing font changes and color information.
-
formatClassDefinition: aString in: aClass
-
format (recolor) a class definition expression in a given class.
Return the text containing font changes and color information.
-
formatExpression: aString in: aClass
-
format (recolor) an expression in a given class.
Return the text containing font changes and color information.
usage example(s):
self
formatExpression:'(1 + 2) max:5'
in:UndefinedObject
|
-
formatExpression: aString in: aClass elementsInto: elementsCollection
-
-
formatMethod: aString in: aClass
-
format (recolor) a method in a given class.
Return the text containing font changes and color information.
-
formatMethod: aMethod source: aString in: aClass
-
-
formatMethod: aMethod source: aString in: aClass using: preferencesOrNil
-
format (recolor) a single method in a given class.
Return the text containing font changes and color information.
-
formatMultiMethodSource: aString in: aClass using: preferencesOrNil
-
format (recolor) a sequence of methods in a given class.
Return the text containing font changes and color information.
-
formatStatementList: aString in: aClass elementsInto: elements
-
format (recolor) a statement list in a given class.
Return the text containing font changes and color information.
usage example(s):
self
formatStatementList:'(1 + 2) max:5. 1 + 2'
in:UndefinedObject
elementsInto:(OrderedCollection new).
|
accessing
-
preferences: something
-
-
sourceText
-
return the value of the instance variable 'sourceText' (automatically generated)
-
sourceText: something
-
set the value of the instance variable 'sourceText' (automatically generated)
error handling
-
parseError: aMessage position: position to: endPos
-
initialization
-
initialize
-
private
-
isSyntaxHighlighter
-
-
isUnknownGlobal: nameSym
-
syntax detection
-
markArgumentIdentifierFrom: pos1 to: pos2
-
-
markClassVariableIdentifierFrom: pos1 to: pos2
-
-
markCommentFrom: pos1 to: pos2
-
-
markConstantFrom: pos1 to: pos2
-
-
markFrom: pos1 to: pos2 withEmphasis: fontEmp color: clrIn
-
-
markFunctionNameFrom: pos1 to: pos2
-
-
markGlobalClassIdentifierFrom: pos1 to: pos2
-
-
markGlobalIdentifierFrom: pos1 to: pos2
-
(comment from inherited method)
intentionally left blank here
-
markIdentifierFrom: pos1 to: pos2
-
-
markInstVarIdentifierFrom: pos1 to: pos2
-
-
markKeyword: kw from: pos1 to: pos2
-
keywords get a special color
-
markLocalIdentifierFrom: pos1 to: pos2
-
-
markSelector: selectorString from: pos1 to: pos2 receiverNode: aReceiverNodeOrNil numArgs: numArgs
-
a local call
-
markSelfFrom: pos1 to: pos2
-
-
markStringFrom: pos1 to: pos2
-
-
markSuperFrom: pos1 to: pos2
-
-
markUnknownIdentifierFrom: pos1 to: pos2
-
Modified (format): / 14-02-2019 / 14:53:01 / Claus Gittinger
-
markVariable: v
-
support for syntaxColoring
-
markVariable: v from: pos to: endPos
-
support for syntaxColoring
|