TypoScript
Based on the work by Enrique Moreno Tent on Github.
Labels language syntax
Details
Installs
- Total 7K
- Win 3K
- Mac 3K
- Linux 1K
Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Based on the work by Enrique Moreno Tent on Github.
Features
- Some additional keywords like
FLUIDTEMPLATE
. - Added the ability to comment and uncomment via Sublime Text functionality (menu and keyboard).
- Highlighting for TypoScript conditions
- Highlighting for deprecated keywords (TYPO3 7.x)
Supported files
The package will apply the syntax automatically to files to *.ts
, *.ts2
, *.t3
, *.t3c
, *.t3s
files.
By installing the ApplySyntax package some of TYPO3s *.txt
files are covered as well:
ext_conf_template.txt
ext_typoscript_constants.txt
ext_typoscript_setup.txt
constants.txt
(*)setup.txt
(*)
*) As long as their paths contain the strings fileadmin
, typo3
or TypoScript
.
The ApplySyntax
configuration actually looks like this:
{
"syntaxes": [
{
"syntax": "TypoScript/TypoScript",
"rules": [
{"file_path": ".*(\\\\|/)ext_conf_template\\.txt$"},
{"file_path": ".*(\\\\|/)ext_typoscript_(setup|constants)\\.txt$"},
{"file_name": ".*(\\\\|/)(fileadmin|typo3|TypoScript).*(\\\\|/)(setup|constants)\\.txt$"},
{"file_path": ".*(\\\\|/)Configuration(\\\\|/)TypoScript(\\\\|/).*\\.txt$"}
]
}
]
}
To apply TypoScript syntax highlighting to other files you could easily enhance the above syntax detection rules. Have a look into the ApplySyntax manual
Thanks to Philipp Kitzberger and Mathias Brodala for the hint.