[TYPO3-doc] Merged: [BUGFIX] Make highlighting possible for PHP without "<?php"

Martin Bless m.bless at gmx.de
Tue Oct 30 13:29:09 CET 2012


Hello Philipp,

>Martin Bless wrote:
>
>> to GlobalSettings.yml on the srv123 server to make "php" the
>> default (and now working) highlight_language for us in general.
>
>Can that be changed per project laster on?
>Because I think the TS-docs would use TS as default even if TS highlighting 
>might not yet be supported.

Yes, you can do that easily in several places:

1. add::

    highlight_lang = LANGNAME

  to you Settings.yml

2. add::

    .. highlight:: LANG
       :<options>:

  to you 'Include.txt'

3. add the .. highlight:: directive (like in 2.) as often as you
like in your current ReST file. It will take effect in that ReST
file until the next .. highlight:: directive is encountered.

So you have maximal freedom here.

Thanks for your question.

Martin
  




>
>Best regards

-- 
Certified TYPO3 Integrator | TYPO3 Documentation Team Member

http://mbless.de


More information about the TYPO3-project-documentation mailing list