Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fmarkos/c3269ce14629e96aafb0d393d7929624 to your computer and use it in GitHub Desktop.
Save fmarkos/c3269ce14629e96aafb0d393d7929624 to your computer and use it in GitHub Desktop.
Paperscript JS Syntax Highlighting - Sublime Text 3
  • Download and Install Sublime Text 3.1.1 Build 3176
  • Install Package Control (don't forget to restart Sublime after)
  • Install PackageResourceViewer (restart Sublime)
  • Open the Command Palette (Tools > Command Palette from Sublime task menu)
  • Enter open resource and select PackageResourceViewer: Open Resource
  • Enter html and select HTML
  • Enter sub and select HTML.sublime-syntax
  • Click Find > Find... from the Sublime task menu (or use cmd+f or ctrl +f) and search for (?:java|ecma)
  • Replace (?:java|ecma) on line 38 with (?:java|ecma|paper)
  • Save and close the file
  • Test it out, it should work now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment