eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SyntaxHighlighter':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SyntaxHighlighter


Inheritance:

   Object
   |
   +--Scanner
      |
      +--Parser
         |
         +--AbstractSyntaxHighlighter
            |
            +--SyntaxHighlighter
               |
               +--SyntaxHighlighter2

Package:
stx:libcomp
Category:
System-Compiler
Version:
rev: 1.84 date: 2018/04/19 15:45:39
user: stefan
file: SyntaxHighlighter.st directory: libcomp
module: stx stc-classLibrary: libcomp

Description:


colors a method.


Class protocol:

constants
o  codeAspectClassDefinition

o  codeAspectExpression

o  codeAspectFile

o  codeAspectMethod


Instance protocol:

initialization
o  initialize
must be called if redefined

syntax detection
o  markArgumentIdentifierFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markAssignedClassVariableIdentifierFrom: pos1 to: pos2

o  markAssignedGlobalIdentifierFrom: pos1 to: pos2

o  markAssignedIdentifierFrom: pos1 to: pos2
any other identifier (PrivateClass, Workspace, Doit, etc.)

o  markAssignedInstVarIdentifierFrom: pos1 to: pos2

o  markAssignedPoolVariableIdentifierFrom: pos1 to: pos2

o  markAssignedVariable: v from: pos to: endPos
support for syntaxColoring

o  markBadIdentifierFrom: pos1 to: pos2

o  markBlockFrom: pos1 to: pos2
an experiment (which does not look too good, after all):
the deeper the nesting of the block, the darker the background color.

o  markBooleanConstantFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markBracketAt: pos

o  markClassVariableIdentifierFrom: pos1 to: pos2

o  markGlobalClassIdentifierFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markGlobalIdentifierFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markHereFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markIdentifierFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markInstVarIdentifierFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markLocalIdentifierFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markMethodSelectorFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markNumberConstantFrom: pos1 to: pos2

o  markParenthesisAt: pos

o  markPoolVariableIdentifierFrom: pos1 to: pos2

o  markReturnAt: pos
sourceText := (sourceText copyTo:pos-1),(Character value:16r21e7),(sourceText copyFrom:pos+1).

o  markSelector: selectorString from: pos1 to: pos2 receiverNode: aReceiverNode
uncommenting the code below

o  markSelfFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markStringFrom: pos1 to: pos2

o  markSuperFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markSymbolFrom: pos1 to: pos2

o  markThisContextFrom: pos1 to: pos2

o  markUnknownIdentifierFrom: pos1 to: pos2
(comment from inherited method)
intentionally left empty

o  markVariable: v from: pos to: endPos assigned: assigned
support for syntaxColoring



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 20:59:20 GMT