JSPM

  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q54672F

Finetune Etherpad Lite for code editing

Package Exports

  • ep_codepad

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ep_codepad) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

This etherpad-lite plugin merges functionality of simple plugins, and adds some functionality on its own.

  • File Tree view, open files into pads and save them back.

  • Syntaxhighlighting for 27 popular lanuges - based on alexgorbatchev/syntaxhighlighter

  • Adds tons of themes, properly implemented with css, and a theme generator

  • beutify html/css/javascript code with jsBeutify

  • Syntax check javascipt with jsHint, and display results

  • save/commit/push and play

  • It sets some reasonable defaults and customizes buttons

  • Admin interface based on adminpads

  • Can use a hash instead of a password in the users section of settings.json (ep_hash_auth)

Currently the following codepad parameters are supported in etherpad's settings.json:

  • default theme
  • project path to save files
  • button to open a browser to the project
  • action to perform when pushing files
  "ep_codepad": { 
    "theme": "Cobalt",
    "project_path": "/srv/project",
    "play_url": "http://project.local",
    "push_action": "cd /srv/project && git add . && git commit -m codepad-auto"
  },

Codepad is designed to work together with fedora "srvctl", an LXC container and virtual server farm managment tool, and there is also a standalone bash installation script for Fedora, both can:

  • install dependencies of etherpad, and etherpad itself
  • import sourcecode files via API
  • configure the thing

https://githubub.com/LaKing/Fedora-scripts

Known issues:

  • multiline comments don't get highlighted

Features in progress:

  • search and replace in files
  • better file management

Close to production-ready, under heavy development. Please feel free to test, and contact me if ...