Sublime Text Plugin

down arrow Code & Downloads

Paxton's awesome Sublime Text Plugin.

If you edit code with Sublime Text 2 or 3 be sure to install this plugin.

Features:

  • XQuery syntax highlighting
  • MarkLogic Function Autocomplete - Autocompletes with stubbed parameters. Never forget which param goes where again.
  • Xquery Lint - This will save you hours of debugging. Highlights the line and underlines the offending bit of code.
  • Run your code on the server - Ctrl+alt+r will execute your code on the server. Saves you a trip to Qconsole
  • Open docs.marklogic.com - Put your cursor on a function in your code and press the hotkey. A new browser tab is opened to the docs page.
  • Code snippets - Common used patterns are available: if, typeswitch, etc.
  • Autocomplete for common, annoying things - Stop trying to remember paths for import statements. Start typing to see a list of all the MarkLogic imports. Select one and it gets inserted into your code.
  • Plays nice with Roxy - The plugin can use your Roxy properties files to determine which server to use for linting and running code.

Comments

  • The search paths option seems interesting, if I understand correct I do not need to deploy a lib ik I can override it with my local copy. But again no example documentation makes it hard to use this feature. Anyone? Much appreciated.
    • Not sure how that works, but take a look at the README. If that doesn't help, your best bet is to submit an issue on GitHub asking for documentation that addresses your question.
      • Hi David, I have done both ... ;-) See <a href="https://github.com/paxtonhare/MarkLogic-Sublime/issues/39"> Issue #39 </a>
  • Hi guys, I cannot seem to get the plugin to work with roxy... any example settings that work for roxy projects?
    • Hugo, take a look at <a href="https://github.com/paxtonhare/MarkLogic-Sublime#via-roxy">the project's README on GitHub</a>. Paxton shows sample settings there.
      • Hi David, exactly , so the example in the README the xcc settings only work if I fill in all details including ports and databases... but imho that is exactly the part that should roll out of the roxy settings right...? In my mind I should only tell sublime I am inside a roxy project so I can tell it to use the 'local' settings and off we go... So apparently I am missig something. My question here is: Does anyone have a ML-sublime-settings that works and actually uses the roxy settings e.g. the port and db details from 'local' in roxy ...