/AceEditorVTT

Foundry VTT module that replaces the macro editor with Ace Editor for Javascript.

Primary LanguageJavaScriptMIT LicenseMIT

THIS MODULE IS DEPRECATED! It will soon be delisted from Foundry's package manager. Fork or reuse this code at your discretion.

Please use VTTMacroEditor instead. It's what this project was based on anyway.

AceEditorVTT

Foundry VTT module that replaces the macro editor with Ajax.org Cloud9 Editor (ACE) for Javascript.

Maintained by NaviSaysListen. The work within is based on a repo by Ardittristan.

If you like what you see and want me to keep maintaining this, send me some CoffeeBucks paypal

This Module is NOT compatible with Furnace, as they both use Ace.


Features included for AceEditorVTT:

  • Javascript syntax highlighting.
  • Code autocompletion.
  • Error markings.
  • Line wrap.
  • Font size.
  • A selection of common editor themes, like Solarized Dark, Monokai, etc...

TODO

  • More editor options, with some being in the macro-editor instead of Module Settings.
  • Option for the editor to be default (don't have to click editor button).
  • Maybe Furnace compatibility?
  • Suggest more if you have ideas.

How to contribute

Requires:

  • Nodejs (as of 11/2020 I'm using: v12.18.4 with NPM v6.14.6)

Suggestions:

  1. While developing, download the Foundry app to test changes.
  2. Before the next step, install using the module.json URL.
  3. After Gulp build, copy-paste build directory to your Foundry Data Module directory for AceEditorVTT.
  4. Use Developer Tools to debug 3rd party module conflicts, issues, and look for styling issues.

Development

  1. Install. npm install
  2. Create a new branch for edits
  3. Make changes, then...
  4. Push current build to dist folder gulp build. Use suggestion steps to debug before creating a PR.
  5. Once satisfied, commit changes and push your branch.

PRs will be reviewed by navisayslisten. Assistance is welcome.

Otherwise create enhancement requests in the Issue tracker.