[TYPO3-english] SyntaxHighlighter and TypoScript ?

Jigal van Hemert jigal at xs4all.nl
Sat Apr 25 09:32:53 CEST 2009


>>> Do you have example for TypoScript syntax please ?
>>
>> maye the code in file TypoScript.INI in this [1]archive will help you.

The problem with making a syntax highlighter for TypoScript is that it is
not a scripting language, but a configuration language.

Maybe it's best to read
http://typo3.org/documentation/document-library/core-documentation/doc_core_ts/current/
and
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/

To see how the syntax is defined. It's sometimes a bit messy (in my opinion).
e.g.
1.    myObject=HTML
2.    myObject.value=<b>Some text</b>
3.    myOtherObject=<myObject
The =< in line 2 is an assignment operator '=' with the first character of
the value '<', but in line 3 the '<' creates a reference to myObject
because the rest of the value is a valid object path...

As usual everything is special in TypoScript. There a few 'functions'
defined for use with the := (modify value) operator, but these functions
all use an implicit parameter: the value of the left operand of the :=
operator.
4. myObject.value := appendString(<i> more text</i>)

I must admit that I am a big fan of what one can do with TypoScript:
generate pretty complex images, run queries and render content from the
result of the query, modify the behaviour of many things in TYPO3, etc.
It's just that the syntax is sometimes a bit ... ehm... odd :-)

Regards,

-- 
Jigal van Hemert.



More information about the TYPO3-english mailing list