Developer Corner¶
Generated markup¶
Syntax Highligther¶
1 2 3 <pre class="php"> CODE GOES HERE </pre>
Prism¶
1 2 3 4 5 <pre class="language-php"> <code> CODE GOES HERE </code> </pre>
FAQ¶
Howto install JS vendors¶
Download amd install node.js from http://nodejs.org/download/
Install bower
npm install bower
Install vendors from CLI
bower install
- Remove unneeded files:
- qunit folder
- xregexp folder
- all *.min.js files in Resources/Public/Javascript/vendor/prism/components/
- all untracked files in Resources/Public/Javascript/vendor/prism/
Howto add BOM to all reStructuredText files¶
While editing the files in Eclipse, the BOM possibly gets removed, this script will help you to re-add the UTF8 BOM again.
Simply put that into the extension root directory, add executable rights (chmod u+x …). If you are still experiencing issues, just comment out the last line and execute the script multiple times until no output is displayed. Then uncomment the last line.
#!/bin/bash for F in $(ls -R Documentation/*.rst Documentation/*/*.rst Documentation/*.txt) do if [[ -f $F && `head -c 3 $F` == $'\xef\xbb\xbf' ]]; then # file exists and has UTF-8 BOM mv $F $F.bak tail -c +4 $F.bak > $F rm -f $F.bak echo "removed BOM from $F" fi done for file in $(ls -R Documentation/*.rst Documentation/*/*.rst Documentation/*.txt); do sed -i '1s/^/\xef\xbb\xbf/' "$file"; done
Run unit tests¶
cd web/typo3conf/ext/beautyofcode composer install cd .Build bash ./run_tests.sh