| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This is a code editor plugin for GitBook, for inserting code segments into the book, with syntax highlight supports for about 110 types of programming languages.
See the plugin at work here.
0.3 Releases:
0.2 Releases:
0.1 Releases:
0.0 Releases:
The plugin has a basic syntax:
{%ace edit=true, lang='c_cpp'%}
// This is a hello world program for C.
#include <stdio.h>
int main(){
printf("Hello World!");
return 1;
}
{%endace%}
edit: if this is set to true, the code will be editable by the user.
lang: the language for syntax highlight. If this is not specified, it will fallback to 'c_cpp' by default. For the full list of keyword for each language, please check out the github page of ace here, all the related files are starting with prefix mode-. For instance:
check: if this is set to false, syntax validation will be disabled.
theme: the theme for the editor, the default is 'chrome'.
| Back | FazBrowse Home | New Git URL |