I hereby claim:
- I am rooftopsparrow on github.
- I am jonathanicholson (https://keybase.io/jonathanicholson) on keybase.
- I have a public key ASD1phbjJiLP68DHlQpqBN1Q0yUygeJ2YOsRtg6jp3r38Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# After finished just run `gulp` | |
mkdir gulptest && cd gulptest | |
mkdir js | |
cat <<EOF > js/test.js | |
function foo() { | |
console.log("bar"); | |
} | |
EOF | |
for n in {001..242}; do | |
cp js/test.js js/test-$n.js |
var nosqlite = require('nosqlite'); | |
connection = new nosqlite.Connection(); | |
db = connection.database('test'); | |
if(!db.existsSync()){ | |
db.createSync(); | |
} |
TextMate by default will highlight anything in a <script>
tag as javascript.
But for Backbone.js and other javascript MVC frameworks, the script tag is used as a template container.
So this will remove javascript highlighting and use html highlighting instead for any <script type="text/template">
tag.
Replace this line in the Bundle Editor for HTML language:
begin = '(?:^\s+)?(<)((?i:script))\b(?![^>]*/>)';
with this line: