Closed gdolle closed 7 years ago
FYI: I've created similar plugin. https://github.com/azu/gitbook-plugin-js-console It used CodeMirror and focus JavaScript.
Nice. (If you want to support it in the future, we just have to add a new template "templates/js-template.hbs") ;)
@gdolle Can you rename file path in example/ directory.
I'll do that. I'll let you know when I'm done
@azu changes done !
Ok. I'll merge it soon.
Refactor lang fix in particular for c++ (as ace-plugin is a native aceMods, it support c_cpp, see issue #21)
This include a bit of breaking change.(fixlang option is false by default.) So, We should release next as major update via semver.
Sorry, I forget to check files
in package.json.
It define published files to npm.
template
to templates
.
and we should update gitbook config schema in package.json
@gdolle Can you update these?
@gdolle Can you update these?
@azu done
@gdolle Thanks!
@azu I propose to support gitbook-ace-plugin to add an optional nicer code editor.
Result example:![ex](https://cloud.githubusercontent.com/assets/2409477/21787112/a6871806-d6c7-11e6-8cf5-6007039527a6.png)
Usage
Enable globally
[include:"marker0", theme:"monokai",edit:"false"](path/to/the/code)
See the readme for more details.
Changelog:
ace
oracefull
(with/without title)c_cpp
, see issue #21) Thus, we let now the user choose to fix or not the c++ syntax colors via the global/local option fixlang.Bug/Known issues:
+++
tags for the asciidoc format when using ace templates. It might in the future see ymcatar/gitbook-plugin-ace/issues/14.