eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Tools::CodeHighlightingService':

Home

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

Class: CodeHighlightingService (in Tools)


Inheritance:

   Object
   |
   +--Tools::CodeViewService
      |
      +--Tools::BackgroundSourceProcessingService
         |
         +--Tools::CodeHighlightingService

Package:
stx:libtool
Category:
Interface-CodeView
Version:
rev: 1.64 date: 2018/08/22 07:33:37
user: cg
file: Tools__CodeHighlightingService.st directory: libtool
module: stx stc-classLibrary: libtool

Class protocol:

accessing
o  label
Answers a short label - for UI

testing
o  isUsefulFor: aCodeView
this filters useful services.
Redefined to return true for myself - not for subclasses


Instance protocol:

accessing
o  preferences: preferences
must be able to set those - otherwise, it uses a different coloring scheme in
expecco

o  syntaxHighlighter
First, ask application...

o  syntaxHighlighters
cg: who sets this highlighter when adding a subclass to one of the expecco codeDescriptions?

accessing-defaults
o  defaultJobName
(comment from inherited method)
Returns a human-readable job name, to ease identification in process browser

private
o  clearScrollbarBackground
immediate change the scroller back to showing nothing;

o  process
(Re)starts the processing job. Should be called whenever a source
must be (re)processed.

o  process: delayed
codeView topView class == DebugView ifTrue:[^ self].

o  setHighlightedCode: newCode elements: elements
the background synhighlighter has generated new colored text,
with highlighted syntax.
If there have been no modifications in the meantime, install it.

usage example(s):

an user event for #setHighlightedCode:elements: is already in



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 16 Apr 2021 11:29:58 GMT