Skip to content

Instantly share code, notes, and snippets.

@nax3t
Last active December 28, 2020 16:04
Show Gist options
  • Save nax3t/0b5647ea4b0f20102c1bfd090cf8935a to your computer and use it in GitHub Desktop.
Save nax3t/0b5647ea4b0f20102c1bfd090cf8935a 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