Developer Corner
Generated markup
Syntax Highligther
<pre class="php"> CODE GOES HERE </pre>
Copied!
Prism
<pre class="language-php"> <code> CODE GOES HERE </code> </pre>
Copied!
FAQ
Howto install JS vendors
- Download amd install node.js from http://nodejs.org/download/
-
Install bower
npm install bower
Copied! -
Install vendors from CLI
node_modules/.bin/bower install
Copied! - Remove unneeded files in
Resources/
:Public/ Javascript/ vendor -
qunit
folderxregexp
folderprism/
foldergulpfile. js - all
*.
files inmin. js prism/
components/ - all untracked files in
prism/
- Remove unneeded files in
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
Copied!
Run unit tests
cd packages/beautyofcode composer install cd .Build bash ./run_tests.sh
Copied!