html-editor-with-emmet
v1.2.0
Published
This plugin hosts a webpage where one can make use of code completion using emmet for example table>tr*3>td*2 creates a table with 2 column and 3 rw
Downloads
11
Readme
run "npm test" , "node index.js help" or "node index.js TEST 'table>tr3>td3>lorem1'" to get started.
To import as module and use:
var htmlEditorWithEmmet = require("html-editor-with-emmet"); htmlEditorWithEmmet.run();
Or to run at port 9090 use :
var htmlEditorWithEmmet = require("html-editor-with-emmet"); htmlEditorWithEmmet.run(9090);
When running as standalone application
You can start the server by running 'node index.js RUN' or by running 'node index.js RUN 9090' to run at port 9090
Then from a browser you can access the service as:
- http://localhost:9090/test?type=html&exp=table>tr3>td3>lorem1
- http://localhost:9090/test?type=xml&exp=table>tr3>td3>lorem1
- http://localhost:9090/test?type=json&exp=table>tr3>td3>lorem1
- http://localhost:9090/test?exp=table>tr3>td3>lorem1