Skip to content

Instantly share code, notes, and snippets.

@rodneyrehm
Last active August 29, 2015 14:09
Show Gist options
  • Save rodneyrehm/4a087d53ec1e94ccc551 to your computer and use it in GitHub Desktop.
Save rodneyrehm/4a087d53ec1e94ccc551 to your computer and use it in GitHub Desktop.
Customizing Texmate Plugins

Javascript Bundle

Open The Bundle Editor, select the JavaScript bundle, select the JavaScript language entry, exchange the folding markers:

to fold [\n], {\n}, /*\n*/

foldingStartMarker = '(^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$|\[\s*$|\{\s*$|/\*+\s*$)';
foldingStopMarker = '(^\s*\}|^\s*\]|^\s*\*+/)';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment