[TYPO3-doc] New: Syntax highlighting for TypoScript code-blocks in	ReST
    Martin Bless 
    m.bless at gmx.de
       
    Thu Jul 11 18:57:42 CEST 2013
    
    
  
Cool, thanks to Michiel Roos [1] there's now a first release of
syntax highlighting available for TypoScript. 
Example:
.. code-block:: typoscript
   page = PAGE
   page.10 = TEXT
   page.10.value = Hello world!
So ".. code-block:: typoscript" doesn't throw a warning any more
but does some highlighting. It will probably even be improved and
extended in the future.
This [2] is the lexer Michiel created. If you want to have that on
your local machine as well throw that file into the .../lexers/
directory of your install Python "pygments" package. The cd into
that folder and run "_mappings.py". That updates "_mappings.py" in
place and make the TypoScript lexer known.
So:
$ cd path/to/python/pygments/package/.../lexers
$ (sudo) python _mappings.py
[1] http://forge.typo3.org/issues/49880
[2]
https://git.typo3.org/Documentation/RestTools.git/blob/HEAD:/ExtendingPygmentsForTYPO3/_incoming/typoscript.py
Thank you Michiel!
Martin
-- 
Certified TYPO3 Integrator | TYPO3 Documentation Team Member
http://mbless.de
    
    
More information about the TYPO3-project-documentation
mailing list