diff --git a/commands/command.go b/commands/command.go
index c5d67a29..fe9ab12e 100644
--- a/commands/command.go
+++ b/commands/command.go
@@ -43,7 +43,7 @@ func RegisterDataBase() {
if err == nil {
orm.DefaultTimeLoc = location
} else {
- beego.Error("加载时区配置信息失败,请检查是否存在ZONEINFO环境变量:", err)
+ beego.Error("加载时区配置信息失败,请检查是否存在ZONEINFO环境变量->", err)
}
port := beego.AppConfig.String("db_port")
@@ -51,7 +51,7 @@ func RegisterDataBase() {
dataSource := fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?charset=utf8mb4&parseTime=true&loc=%s", username, password, host, port, database, url.QueryEscape(timezone))
if err := orm.RegisterDataBase("default", "mysql", dataSource); err != nil {
- beego.Error("注册默认数据库失败:", err)
+ beego.Error("注册默认数据库失败->", err)
os.Exit(1)
}
} else if adapter == "sqlite3" {
@@ -67,7 +67,7 @@ func RegisterDataBase() {
err := orm.RegisterDataBase("default", "sqlite3", database)
if err != nil {
- beego.Error("注册默认数据库失败:", err)
+ beego.Error("注册默认数据库失败->", err)
}
} else {
beego.Error("不支持的数据库类型.")
@@ -252,6 +252,7 @@ func ResolveCommand(args []string) {
if err := beego.LoadAppConfig("ini", conf.ConfigurationFile);err != nil {
log.Fatal("An error occurred:", err)
}
+ conf.AutoLoadDelay = beego.AppConfig.DefaultInt("config_auto_delay",0)
uploads := conf.WorkingDir("uploads")
os.MkdirAll(uploads, 0666)
@@ -374,6 +375,40 @@ func RegisterCache() {
beego.Info("缓存初始化完成.")
}
+//自动加载配置文件.修改了监听端口号和数据库配置无法自动生效.
+func RegisterAutoLoadConfig() {
+ if conf.AutoLoadDelay > 0 {
+ ticker := time.NewTicker(time.Second * time.Duration(conf.AutoLoadDelay))
+
+ go func() {
+ f,err := os.Stat(conf.ConfigurationFile)
+ if err != nil {
+ beego.Error("读取配置文件时出错 ->",err)
+ return
+ }
+ modTime := f.ModTime()
+ for {
+ select {
+ case <-ticker.C:
+ f,err := os.Stat(conf.ConfigurationFile)
+ if err != nil {
+ beego.Error("读取配置文件时出错 ->",err)
+ break
+ }
+ if modTime != f.ModTime() {
+ if err := beego.LoadAppConfig("ini", conf.ConfigurationFile); err != nil {
+ beego.Error("An error occurred:", err)
+ break
+ }
+ modTime = f.ModTime()
+ beego.Info("配置文件已加载")
+ }
+ }
+ }
+ }()
+ }
+}
+
func init() {
if configPath, err := filepath.Abs(conf.ConfigurationFile); err == nil {
diff --git a/commands/daemon/daemon.go b/commands/daemon/daemon.go
index 69bfc7cf..c8f4617b 100644
--- a/commands/daemon/daemon.go
+++ b/commands/daemon/daemon.go
@@ -47,6 +47,8 @@ func (d *Daemon) Run() {
commands.RegisterFunction()
+ commands.RegisterAutoLoadConfig()
+
beego.ErrorController(&controllers.ErrorController{})
fmt.Printf("MinDoc version => %s\nbuild time => %s\nstart directory => %s\n%s\n", conf.VERSION, conf.BUILD_TIME, os.Args[0], conf.GO_VERSION)
diff --git a/conf/app.conf.example b/conf/app.conf.example
index 6a16b7db..cd6bfd35 100644
--- a/conf/app.conf.example
+++ b/conf/app.conf.example
@@ -1,4 +1,4 @@
-appname = godoc
+appname = mindoc
# httpaddr = 127.0.0.1
httpport = 8181
runmode = dev
@@ -10,6 +10,15 @@ baseurl=
#默认Session生成Key的秘钥
beegoserversessionkey=123456
+#########代码高亮样式################
+#样式演示地址:https://highlightjs.org/static/demo/
+highlight_style=github
+
+########配置文件自动加载##################
+#大于0时系统会自动检测配置文件是否变动,变动后自动加载并生效,单位是秒。监听端口和数据库配置无效
+config_auto_delay=0
+
+
########Session储存方式##############
#以文件方式储存
sessionprovider=file
diff --git a/conf/enumerate.go b/conf/enumerate.go
index 2c9c49dc..7af755c8 100644
--- a/conf/enumerate.go
+++ b/conf/enumerate.go
@@ -68,6 +68,7 @@ var (
WorkingDirectory = "./"
LogFile = "./runtime/logs"
BaseUrl = ""
+ AutoLoadDelay = 0
)
// app_key
diff --git a/controllers/BaseController.go b/controllers/BaseController.go
index 49edeb44..f8dbc786 100644
--- a/controllers/BaseController.go
+++ b/controllers/BaseController.go
@@ -77,6 +77,7 @@ func (c *BaseController) Prepare() {
}
}
}
+ c.Data["HighlightStyle"] = beego.AppConfig.DefaultString("highlight_style","github")
}
// SetMember 获取或设置当前登录用户信息,如果 MemberId 小于 0 则标识删除 Session
diff --git a/controllers/LabelController.go b/controllers/LabelController.go
index 7c4cb2ed..b87fc381 100644
--- a/controllers/LabelController.go
+++ b/controllers/LabelController.go
@@ -44,18 +44,18 @@ func (c *LabelController) Index() {
c.Abort("500")
}
}
- member_id := 0
+ memberId := 0
if c.Member != nil {
- member_id = c.Member.MemberId
+ memberId = c.Member.MemberId
}
- searchResult, totalCount, err := models.NewBook().FindForLabelToPager(labelName, pageIndex, conf.PageSize, member_id)
+ searchResult, totalCount, err := models.NewBook().FindForLabelToPager(labelName, pageIndex, conf.PageSize, memberId)
- if err != nil {
- beego.Error(err)
- return
+ if err != nil && err != orm.ErrNoRows {
+ beego.Error("查询标签时出错 ->", err)
+ c.ShowErrorPage(500, "查询文档列表时出错")
}
if totalCount > 0 {
- pager := pagination.NewPagination(c.Ctx.Request, totalCount, conf.PageSize,c.BaseUrl())
+ pager := pagination.NewPagination(c.Ctx.Request, totalCount, conf.PageSize, c.BaseUrl())
c.Data["PageHtml"] = pager.HtmlPages()
} else {
c.Data["PageHtml"] = ""
@@ -74,8 +74,8 @@ func (c *LabelController) List() {
labels, totalCount, err := models.NewLabel().FindToPager(pageIndex, pageSize)
- if err != nil {
- c.ShowErrorPage(50001, err.Error())
+ if err != nil && err != orm.ErrNoRows {
+ c.ShowErrorPage(500, err.Error())
}
if totalCount > 0 {
pager := pagination.NewPagination(c.Ctx.Request, totalCount, conf.PageSize, c.BaseUrl())
diff --git a/models/AttachmentModel.go b/models/AttachmentModel.go
index 3de6d9fc..fe4c9583 100644
--- a/models/AttachmentModel.go
+++ b/models/AttachmentModel.go
@@ -108,6 +108,10 @@ func (m *Attachment) FindToPager(pageIndex, pageSize int) (attachList []*Attachm
_, err = o.QueryTable(m.TableNameWithPrefix()).OrderBy("-attachment_id").Offset(offset).Limit(pageSize).All(&list)
if err != nil {
+ if err == orm.ErrNoRows {
+ beego.Info("没有查到附件 ->",err)
+ err = nil
+ }
return
}
diff --git a/models/attachment_result.go b/models/AttachmentResult.go
similarity index 100%
rename from models/attachment_result.go
rename to models/AttachmentResult.go
diff --git a/models/base.go b/models/Base.go
similarity index 100%
rename from models/base.go
rename to models/Base.go
diff --git a/models/dashboard.go b/models/Dashboard.go
similarity index 100%
rename from models/dashboard.go
rename to models/Dashboard.go
diff --git a/models/DocumentModel.go b/models/DocumentModel.go
index 6a952c2f..e1ed426a 100644
--- a/models/DocumentModel.go
+++ b/models/DocumentModel.go
@@ -180,9 +180,9 @@ func (m *Document) RemoveCache() {
func (m *Document) FromCacheById(id int) (*Document, error) {
var doc Document
- if err := cache.Get("Document.Id."+strconv.Itoa(id), &m); err == nil {
+ if err := cache.Get("Document.Id."+strconv.Itoa(id), &m); err == nil && m.DocumentId > 0 {
m = &doc
- beego.Info("从缓存中获取文档信息成功", m.DocumentId)
+ beego.Info("从缓存中获取文档信息成功 ->", m.DocumentId)
return m, nil
}
@@ -202,8 +202,8 @@ func (m *Document) FromCacheByIdentify(identify string, bookId int) (*Document,
key := fmt.Sprintf("Document.BookId.%d.Identify.%s", bookId, identify)
- if err := cache.Get(key,m); err == nil {
- beego.Info("从缓存中获取文档信息成功", key)
+ if err := cache.Get(key,m); err == nil && m.DocumentId > 0 {
+ beego.Info("从缓存中获取文档信息成功 ->", key)
return m, nil
}
diff --git a/models/LabelModel.go b/models/LabelModel.go
index 558542af..8bbb6cb1 100644
--- a/models/LabelModel.go
+++ b/models/LabelModel.go
@@ -4,6 +4,7 @@ import (
"github.com/astaxie/beego/orm"
"github.com/lifei6671/mindoc/conf"
"strings"
+ "github.com/astaxie/beego"
)
type Label struct {
@@ -98,6 +99,11 @@ func (m *Label) FindToPager(pageIndex, pageSize int) (labels []*Label, totalCoun
_, err = o.QueryTable(m.TableNameWithPrefix()).OrderBy("-book_number").Offset(offset).Limit(pageSize).All(&labels)
+ if err == orm.ErrNoRows {
+ beego.Info("没有查询到标签 ->",err)
+ err = nil
+ return
+ }
return
}
diff --git a/static/css/markdown.preview.css b/static/css/markdown.preview.css
index 02b18f33..42d2dbe1 100644
--- a/static/css/markdown.preview.css
+++ b/static/css/markdown.preview.css
@@ -36,18 +36,6 @@
.editormd-preview-container table tr {
background-color: #fff
}
-.editormd-preview-container code {
- padding: .2em 0;
- margin-left: 3px;
- margin-right: 3px;
- background-color: #eee;
- border-radius: 3px;
- font-size: 1em;
- font-family: Consolas,"Liberation Mono",Menlo,Courier,'Microsoft Yahei',monospace;
- border: 0;
- color: #555;
- word-break: break-all;
-}
/**************TOC*******************/
.markdown-toc{
@@ -56,17 +44,35 @@
}
/***********代码样式*****************/
.markdown-body .highlight pre, .markdown-body pre{
- padding: 0;
- font-size: 12px;
- border-radius:0;
- line-height: 1.4em;
+ padding: 1em;
+ border: none;
+ overflow: auto;
+ line-height: 1.45;
+ max-height: 35em;
+ position: relative;
+ /*background: url(../editor.md/lib/highlight/blueprint.png) #F6F6F6;*/
+ -moz-background-size: 30px,30px;
+ -o-background-size: 30px,30px;
+ -webkit-background-size: 30px,30px;
+ background-size: 30px,30px;
+ border-radius:4px;
+ word-break:break-all;
+ word-wrap:break-word;
+}
+.editormd-preview-container pre.hljs>code {
+ border-radius: 3px;
+ font-size: 1.1em;
+ font-family: "Source Code Pro",Consolas,"Liberation Mono",Menlo,Courier,'Microsoft Yahei',monospace;
+ border: 0;
+ word-break: break-all;
+ overflow-y: auto; overflow-x: hidden;
+ overflow-wrap: normal;
+ white-space: inherit
}
.editormd-preview-container pre.prettyprint, .editormd-html-preview pre.prettyprint {
padding: 0;
}
-.hljs{
- padding: 10px 15px !important;
-}
+
.editormd-preview-container ol.linenums, .editormd-html-preview ol.linenums{
color: #999;
}
diff --git a/static/editor.md/css/editormd.css b/static/editor.md/css/editormd.css
index 73cbfbe0..ac9ba50b 100644
--- a/static/editor.md/css/editormd.css
+++ b/static/editor.md/css/editormd.css
@@ -3636,7 +3636,6 @@
overflow: auto;
font-size: 85%;
line-height: 1.45;
- background-color: #f7f7f7;
border-radius: 3px;
}
@@ -3657,7 +3656,6 @@
overflow: initial;
line-height: inherit;
word-wrap: normal;
- background-color: transparent;
border: 0;
}
@@ -3865,7 +3863,6 @@
}
.editormd-preview-container pre, .editormd-html-preview pre {
border: 1px solid #ddd;
- background: #f6f6f6;
padding: 10px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
diff --git a/static/editor.md/css/editormd.preview.css b/static/editor.md/css/editormd.preview.css
index 60303304..9a43e7ab 100644
--- a/static/editor.md/css/editormd.preview.css
+++ b/static/editor.md/css/editormd.preview.css
@@ -2920,7 +2920,6 @@
overflow: auto;
font-size: 85%;
line-height: 1.45;
- background-color: #f7f7f7;
border-radius: 3px;
}
@@ -2941,7 +2940,6 @@
overflow: initial;
line-height: inherit;
word-wrap: normal;
- background-color: transparent;
border: 0;
}
@@ -3149,7 +3147,6 @@
}
.editormd-preview-container pre, .editormd-html-preview pre {
border: 1px solid #ddd;
- background: #f6f6f6;
padding: 10px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
diff --git a/static/editor.md/editormd.amd.js b/static/editor.md/editormd.amd.js
index f3f379ff..c16283f4 100644
--- a/static/editor.md/editormd.amd.js
+++ b/static/editor.md/editormd.amd.js
@@ -26,7 +26,9 @@
var cmAddonPath = "codemirror/addon/";
var codeMirrorModules = [
- "jquery", "marked", "prettify",
+ "jquery", "marked",
+ //"prettify",
+ "highlight/highlight",
"katex", "raphael", "underscore", "flowchart", "jqueryflowchart", "sequenceDiagram",
"codemirror/lib/codemirror",
@@ -239,6 +241,7 @@
flowChart : false, // flowChart.js only support IE9+
sequenceDiagram : false, // sequenceDiagram.js only support IE9+
previewCodeHighlight : true,
+ highlightStyle : "github",
toolbar : true, // show/hide toolbar
toolbarAutoFixed : true, // on window scroll auto fixed position
@@ -653,7 +656,10 @@
if (settings.previewCodeHighlight)
{
- editormd.loadScript(loadPath + "prettify.min", function() {
+ // editormd.loadScript(loadPath + "prettify.min", function() {
+ // loadFlowChartOrSequenceDiagram();
+ // });
+ editormd.loadScript(loadPath + "highlight/highlight", function() {
loadFlowChartOrSequenceDiagram();
});
}
@@ -1543,11 +1549,16 @@
if (settings.previewCodeHighlight)
{
- previewContainer.find("pre").addClass("prettyprint linenums");
-
- if (typeof prettyPrint !== "undefined")
- {
- prettyPrint();
+ // previewContainer.find("pre").addClass("prettyprint");
+ //
+ // if (typeof prettyPrint !== "undefined")
+ // {
+ // prettyPrint();
+ // }
+ if (typeof hljs !== "undefined") {
+ previewContainer.find('pre').each(function (i, block) {
+ hljs.highlightBlock(block);
+ });
}
}
@@ -4064,8 +4075,11 @@
if (settings.previewCodeHighlight)
{
- div.find("pre").addClass("prettyprint linenums");
- prettyPrint();
+ //div.find("pre").addClass("prettyprint");
+ //prettyPrint();
+ div.find("pre").each(function (i, block) {
+ hljs.highlightBlock(block);
+ });
}
if (!editormd.isIE8)
diff --git a/static/editor.md/editormd.js b/static/editor.md/editormd.js
index ffd7e8b7..e8791238 100644
--- a/static/editor.md/editormd.js
+++ b/static/editor.md/editormd.js
@@ -580,10 +580,14 @@
editormd.loadScript(loadPath + "marked.min", function() {
editormd.$marked = marked;
-
+
+ if(!settings.highlightStyle){
+ settings.highlightStyle = "github";
+ }
if (settings.previewCodeHighlight)
{
- editormd.loadScript(loadPath + "prettify.min", function() {
+ editormd.loadCSS(loadPath + "highlight/styles/" + settings.highlightStyle);
+ editormd.loadScript(loadPath + "highlight/highlight", function() {
loadFlowChartOrSequenceDiagram();
});
}
@@ -1473,12 +1477,15 @@
if (settings.previewCodeHighlight)
{
- previewContainer.find("pre").addClass("prettyprint linenums");
-
- if (typeof prettyPrint !== "undefined")
- {
- prettyPrint();
- }
+ // previewContainer.find("pre").addClass("prettyprint");
+ //
+ // if (typeof prettyPrint !== "undefined")
+ // {
+ // prettyPrint();
+ // }
+ previewContainer.find("pre").each(function (i, block) {
+ hljs.highlightBlock(block);
+ });
}
return this;
@@ -3994,7 +4001,7 @@
if (settings.previewCodeHighlight)
{
- div.find("pre").addClass("prettyprint linenums");
+ div.find("pre").addClass("prettyprint");
prettyPrint();
}
diff --git a/static/editor.md/lib/highlight/blueprint.png b/static/editor.md/lib/highlight/blueprint.png
new file mode 100644
index 00000000..ea1d136c
Binary files /dev/null and b/static/editor.md/lib/highlight/blueprint.png differ
diff --git a/static/highlight/highlight.js b/static/editor.md/lib/highlight/highlight.js
similarity index 100%
rename from static/highlight/highlight.js
rename to static/editor.md/lib/highlight/highlight.js
diff --git a/static/highlight/highlightjs-line-numbers.min.js b/static/editor.md/lib/highlight/highlightjs-line-numbers.min.js
similarity index 100%
rename from static/highlight/highlightjs-line-numbers.min.js
rename to static/editor.md/lib/highlight/highlightjs-line-numbers.min.js
diff --git a/static/highlight/languages/1c.js b/static/editor.md/lib/highlight/languages/1c.js
similarity index 100%
rename from static/highlight/languages/1c.js
rename to static/editor.md/lib/highlight/languages/1c.js
diff --git a/static/highlight/languages/abnf.js b/static/editor.md/lib/highlight/languages/abnf.js
similarity index 100%
rename from static/highlight/languages/abnf.js
rename to static/editor.md/lib/highlight/languages/abnf.js
diff --git a/static/highlight/languages/accesslog.js b/static/editor.md/lib/highlight/languages/accesslog.js
similarity index 100%
rename from static/highlight/languages/accesslog.js
rename to static/editor.md/lib/highlight/languages/accesslog.js
diff --git a/static/highlight/languages/actionscript.js b/static/editor.md/lib/highlight/languages/actionscript.js
similarity index 100%
rename from static/highlight/languages/actionscript.js
rename to static/editor.md/lib/highlight/languages/actionscript.js
diff --git a/static/highlight/languages/ada.js b/static/editor.md/lib/highlight/languages/ada.js
similarity index 100%
rename from static/highlight/languages/ada.js
rename to static/editor.md/lib/highlight/languages/ada.js
diff --git a/static/highlight/languages/apache.js b/static/editor.md/lib/highlight/languages/apache.js
similarity index 100%
rename from static/highlight/languages/apache.js
rename to static/editor.md/lib/highlight/languages/apache.js
diff --git a/static/highlight/languages/applescript.js b/static/editor.md/lib/highlight/languages/applescript.js
similarity index 100%
rename from static/highlight/languages/applescript.js
rename to static/editor.md/lib/highlight/languages/applescript.js
diff --git a/static/highlight/languages/arduino.js b/static/editor.md/lib/highlight/languages/arduino.js
similarity index 100%
rename from static/highlight/languages/arduino.js
rename to static/editor.md/lib/highlight/languages/arduino.js
diff --git a/static/highlight/languages/armasm.js b/static/editor.md/lib/highlight/languages/armasm.js
similarity index 100%
rename from static/highlight/languages/armasm.js
rename to static/editor.md/lib/highlight/languages/armasm.js
diff --git a/static/highlight/languages/asciidoc.js b/static/editor.md/lib/highlight/languages/asciidoc.js
similarity index 100%
rename from static/highlight/languages/asciidoc.js
rename to static/editor.md/lib/highlight/languages/asciidoc.js
diff --git a/static/highlight/languages/aspectj.js b/static/editor.md/lib/highlight/languages/aspectj.js
similarity index 100%
rename from static/highlight/languages/aspectj.js
rename to static/editor.md/lib/highlight/languages/aspectj.js
diff --git a/static/highlight/languages/autohotkey.js b/static/editor.md/lib/highlight/languages/autohotkey.js
similarity index 100%
rename from static/highlight/languages/autohotkey.js
rename to static/editor.md/lib/highlight/languages/autohotkey.js
diff --git a/static/highlight/languages/autoit.js b/static/editor.md/lib/highlight/languages/autoit.js
similarity index 100%
rename from static/highlight/languages/autoit.js
rename to static/editor.md/lib/highlight/languages/autoit.js
diff --git a/static/highlight/languages/avrasm.js b/static/editor.md/lib/highlight/languages/avrasm.js
similarity index 100%
rename from static/highlight/languages/avrasm.js
rename to static/editor.md/lib/highlight/languages/avrasm.js
diff --git a/static/highlight/languages/awk.js b/static/editor.md/lib/highlight/languages/awk.js
similarity index 100%
rename from static/highlight/languages/awk.js
rename to static/editor.md/lib/highlight/languages/awk.js
diff --git a/static/highlight/languages/axapta.js b/static/editor.md/lib/highlight/languages/axapta.js
similarity index 100%
rename from static/highlight/languages/axapta.js
rename to static/editor.md/lib/highlight/languages/axapta.js
diff --git a/static/highlight/languages/bash.js b/static/editor.md/lib/highlight/languages/bash.js
similarity index 100%
rename from static/highlight/languages/bash.js
rename to static/editor.md/lib/highlight/languages/bash.js
diff --git a/static/highlight/languages/basic.js b/static/editor.md/lib/highlight/languages/basic.js
similarity index 100%
rename from static/highlight/languages/basic.js
rename to static/editor.md/lib/highlight/languages/basic.js
diff --git a/static/highlight/languages/bnf.js b/static/editor.md/lib/highlight/languages/bnf.js
similarity index 100%
rename from static/highlight/languages/bnf.js
rename to static/editor.md/lib/highlight/languages/bnf.js
diff --git a/static/highlight/languages/brainfuck.js b/static/editor.md/lib/highlight/languages/brainfuck.js
similarity index 100%
rename from static/highlight/languages/brainfuck.js
rename to static/editor.md/lib/highlight/languages/brainfuck.js
diff --git a/static/highlight/languages/cal.js b/static/editor.md/lib/highlight/languages/cal.js
similarity index 100%
rename from static/highlight/languages/cal.js
rename to static/editor.md/lib/highlight/languages/cal.js
diff --git a/static/highlight/languages/capnproto.js b/static/editor.md/lib/highlight/languages/capnproto.js
similarity index 100%
rename from static/highlight/languages/capnproto.js
rename to static/editor.md/lib/highlight/languages/capnproto.js
diff --git a/static/highlight/languages/ceylon.js b/static/editor.md/lib/highlight/languages/ceylon.js
similarity index 100%
rename from static/highlight/languages/ceylon.js
rename to static/editor.md/lib/highlight/languages/ceylon.js
diff --git a/static/highlight/languages/clean.js b/static/editor.md/lib/highlight/languages/clean.js
similarity index 100%
rename from static/highlight/languages/clean.js
rename to static/editor.md/lib/highlight/languages/clean.js
diff --git a/static/highlight/languages/clojure-repl.js b/static/editor.md/lib/highlight/languages/clojure-repl.js
similarity index 100%
rename from static/highlight/languages/clojure-repl.js
rename to static/editor.md/lib/highlight/languages/clojure-repl.js
diff --git a/static/highlight/languages/clojure.js b/static/editor.md/lib/highlight/languages/clojure.js
similarity index 100%
rename from static/highlight/languages/clojure.js
rename to static/editor.md/lib/highlight/languages/clojure.js
diff --git a/static/highlight/languages/cmake.js b/static/editor.md/lib/highlight/languages/cmake.js
similarity index 100%
rename from static/highlight/languages/cmake.js
rename to static/editor.md/lib/highlight/languages/cmake.js
diff --git a/static/highlight/languages/coffeescript.js b/static/editor.md/lib/highlight/languages/coffeescript.js
similarity index 100%
rename from static/highlight/languages/coffeescript.js
rename to static/editor.md/lib/highlight/languages/coffeescript.js
diff --git a/static/highlight/languages/coq.js b/static/editor.md/lib/highlight/languages/coq.js
similarity index 100%
rename from static/highlight/languages/coq.js
rename to static/editor.md/lib/highlight/languages/coq.js
diff --git a/static/highlight/languages/cos.js b/static/editor.md/lib/highlight/languages/cos.js
similarity index 100%
rename from static/highlight/languages/cos.js
rename to static/editor.md/lib/highlight/languages/cos.js
diff --git a/static/highlight/languages/cpp.js b/static/editor.md/lib/highlight/languages/cpp.js
similarity index 100%
rename from static/highlight/languages/cpp.js
rename to static/editor.md/lib/highlight/languages/cpp.js
diff --git a/static/highlight/languages/crmsh.js b/static/editor.md/lib/highlight/languages/crmsh.js
similarity index 100%
rename from static/highlight/languages/crmsh.js
rename to static/editor.md/lib/highlight/languages/crmsh.js
diff --git a/static/highlight/languages/crystal.js b/static/editor.md/lib/highlight/languages/crystal.js
similarity index 100%
rename from static/highlight/languages/crystal.js
rename to static/editor.md/lib/highlight/languages/crystal.js
diff --git a/static/highlight/languages/cs.js b/static/editor.md/lib/highlight/languages/cs.js
similarity index 100%
rename from static/highlight/languages/cs.js
rename to static/editor.md/lib/highlight/languages/cs.js
diff --git a/static/highlight/languages/csp.js b/static/editor.md/lib/highlight/languages/csp.js
similarity index 100%
rename from static/highlight/languages/csp.js
rename to static/editor.md/lib/highlight/languages/csp.js
diff --git a/static/highlight/languages/css.js b/static/editor.md/lib/highlight/languages/css.js
similarity index 100%
rename from static/highlight/languages/css.js
rename to static/editor.md/lib/highlight/languages/css.js
diff --git a/static/highlight/languages/d.js b/static/editor.md/lib/highlight/languages/d.js
similarity index 100%
rename from static/highlight/languages/d.js
rename to static/editor.md/lib/highlight/languages/d.js
diff --git a/static/highlight/languages/dart.js b/static/editor.md/lib/highlight/languages/dart.js
similarity index 100%
rename from static/highlight/languages/dart.js
rename to static/editor.md/lib/highlight/languages/dart.js
diff --git a/static/highlight/languages/delphi.js b/static/editor.md/lib/highlight/languages/delphi.js
similarity index 100%
rename from static/highlight/languages/delphi.js
rename to static/editor.md/lib/highlight/languages/delphi.js
diff --git a/static/highlight/languages/diff.js b/static/editor.md/lib/highlight/languages/diff.js
similarity index 100%
rename from static/highlight/languages/diff.js
rename to static/editor.md/lib/highlight/languages/diff.js
diff --git a/static/highlight/languages/django.js b/static/editor.md/lib/highlight/languages/django.js
similarity index 100%
rename from static/highlight/languages/django.js
rename to static/editor.md/lib/highlight/languages/django.js
diff --git a/static/highlight/languages/dns.js b/static/editor.md/lib/highlight/languages/dns.js
similarity index 100%
rename from static/highlight/languages/dns.js
rename to static/editor.md/lib/highlight/languages/dns.js
diff --git a/static/highlight/languages/dockerfile.js b/static/editor.md/lib/highlight/languages/dockerfile.js
similarity index 100%
rename from static/highlight/languages/dockerfile.js
rename to static/editor.md/lib/highlight/languages/dockerfile.js
diff --git a/static/highlight/languages/dos.js b/static/editor.md/lib/highlight/languages/dos.js
similarity index 100%
rename from static/highlight/languages/dos.js
rename to static/editor.md/lib/highlight/languages/dos.js
diff --git a/static/highlight/languages/dsconfig.js b/static/editor.md/lib/highlight/languages/dsconfig.js
similarity index 100%
rename from static/highlight/languages/dsconfig.js
rename to static/editor.md/lib/highlight/languages/dsconfig.js
diff --git a/static/highlight/languages/dts.js b/static/editor.md/lib/highlight/languages/dts.js
similarity index 100%
rename from static/highlight/languages/dts.js
rename to static/editor.md/lib/highlight/languages/dts.js
diff --git a/static/highlight/languages/dust.js b/static/editor.md/lib/highlight/languages/dust.js
similarity index 100%
rename from static/highlight/languages/dust.js
rename to static/editor.md/lib/highlight/languages/dust.js
diff --git a/static/highlight/languages/ebnf.js b/static/editor.md/lib/highlight/languages/ebnf.js
similarity index 100%
rename from static/highlight/languages/ebnf.js
rename to static/editor.md/lib/highlight/languages/ebnf.js
diff --git a/static/highlight/languages/elixir.js b/static/editor.md/lib/highlight/languages/elixir.js
similarity index 100%
rename from static/highlight/languages/elixir.js
rename to static/editor.md/lib/highlight/languages/elixir.js
diff --git a/static/highlight/languages/elm.js b/static/editor.md/lib/highlight/languages/elm.js
similarity index 100%
rename from static/highlight/languages/elm.js
rename to static/editor.md/lib/highlight/languages/elm.js
diff --git a/static/highlight/languages/erb.js b/static/editor.md/lib/highlight/languages/erb.js
similarity index 100%
rename from static/highlight/languages/erb.js
rename to static/editor.md/lib/highlight/languages/erb.js
diff --git a/static/highlight/languages/erlang-repl.js b/static/editor.md/lib/highlight/languages/erlang-repl.js
similarity index 100%
rename from static/highlight/languages/erlang-repl.js
rename to static/editor.md/lib/highlight/languages/erlang-repl.js
diff --git a/static/highlight/languages/erlang.js b/static/editor.md/lib/highlight/languages/erlang.js
similarity index 100%
rename from static/highlight/languages/erlang.js
rename to static/editor.md/lib/highlight/languages/erlang.js
diff --git a/static/highlight/languages/excel.js b/static/editor.md/lib/highlight/languages/excel.js
similarity index 100%
rename from static/highlight/languages/excel.js
rename to static/editor.md/lib/highlight/languages/excel.js
diff --git a/static/highlight/languages/fix.js b/static/editor.md/lib/highlight/languages/fix.js
similarity index 100%
rename from static/highlight/languages/fix.js
rename to static/editor.md/lib/highlight/languages/fix.js
diff --git a/static/highlight/languages/flix.js b/static/editor.md/lib/highlight/languages/flix.js
similarity index 100%
rename from static/highlight/languages/flix.js
rename to static/editor.md/lib/highlight/languages/flix.js
diff --git a/static/highlight/languages/fortran.js b/static/editor.md/lib/highlight/languages/fortran.js
similarity index 100%
rename from static/highlight/languages/fortran.js
rename to static/editor.md/lib/highlight/languages/fortran.js
diff --git a/static/highlight/languages/fsharp.js b/static/editor.md/lib/highlight/languages/fsharp.js
similarity index 100%
rename from static/highlight/languages/fsharp.js
rename to static/editor.md/lib/highlight/languages/fsharp.js
diff --git a/static/highlight/languages/gams.js b/static/editor.md/lib/highlight/languages/gams.js
similarity index 100%
rename from static/highlight/languages/gams.js
rename to static/editor.md/lib/highlight/languages/gams.js
diff --git a/static/highlight/languages/gauss.js b/static/editor.md/lib/highlight/languages/gauss.js
similarity index 100%
rename from static/highlight/languages/gauss.js
rename to static/editor.md/lib/highlight/languages/gauss.js
diff --git a/static/highlight/languages/gcode.js b/static/editor.md/lib/highlight/languages/gcode.js
similarity index 100%
rename from static/highlight/languages/gcode.js
rename to static/editor.md/lib/highlight/languages/gcode.js
diff --git a/static/highlight/languages/gherkin.js b/static/editor.md/lib/highlight/languages/gherkin.js
similarity index 100%
rename from static/highlight/languages/gherkin.js
rename to static/editor.md/lib/highlight/languages/gherkin.js
diff --git a/static/highlight/languages/glsl.js b/static/editor.md/lib/highlight/languages/glsl.js
similarity index 100%
rename from static/highlight/languages/glsl.js
rename to static/editor.md/lib/highlight/languages/glsl.js
diff --git a/static/highlight/languages/go.js b/static/editor.md/lib/highlight/languages/go.js
similarity index 100%
rename from static/highlight/languages/go.js
rename to static/editor.md/lib/highlight/languages/go.js
diff --git a/static/highlight/languages/golo.js b/static/editor.md/lib/highlight/languages/golo.js
similarity index 100%
rename from static/highlight/languages/golo.js
rename to static/editor.md/lib/highlight/languages/golo.js
diff --git a/static/highlight/languages/gradle.js b/static/editor.md/lib/highlight/languages/gradle.js
similarity index 100%
rename from static/highlight/languages/gradle.js
rename to static/editor.md/lib/highlight/languages/gradle.js
diff --git a/static/highlight/languages/groovy.js b/static/editor.md/lib/highlight/languages/groovy.js
similarity index 100%
rename from static/highlight/languages/groovy.js
rename to static/editor.md/lib/highlight/languages/groovy.js
diff --git a/static/highlight/languages/haml.js b/static/editor.md/lib/highlight/languages/haml.js
similarity index 100%
rename from static/highlight/languages/haml.js
rename to static/editor.md/lib/highlight/languages/haml.js
diff --git a/static/highlight/languages/handlebars.js b/static/editor.md/lib/highlight/languages/handlebars.js
similarity index 100%
rename from static/highlight/languages/handlebars.js
rename to static/editor.md/lib/highlight/languages/handlebars.js
diff --git a/static/highlight/languages/haskell.js b/static/editor.md/lib/highlight/languages/haskell.js
similarity index 100%
rename from static/highlight/languages/haskell.js
rename to static/editor.md/lib/highlight/languages/haskell.js
diff --git a/static/highlight/languages/haxe.js b/static/editor.md/lib/highlight/languages/haxe.js
similarity index 100%
rename from static/highlight/languages/haxe.js
rename to static/editor.md/lib/highlight/languages/haxe.js
diff --git a/static/highlight/languages/hsp.js b/static/editor.md/lib/highlight/languages/hsp.js
similarity index 100%
rename from static/highlight/languages/hsp.js
rename to static/editor.md/lib/highlight/languages/hsp.js
diff --git a/static/highlight/languages/htmlbars.js b/static/editor.md/lib/highlight/languages/htmlbars.js
similarity index 100%
rename from static/highlight/languages/htmlbars.js
rename to static/editor.md/lib/highlight/languages/htmlbars.js
diff --git a/static/highlight/languages/http.js b/static/editor.md/lib/highlight/languages/http.js
similarity index 100%
rename from static/highlight/languages/http.js
rename to static/editor.md/lib/highlight/languages/http.js
diff --git a/static/highlight/languages/inform7.js b/static/editor.md/lib/highlight/languages/inform7.js
similarity index 100%
rename from static/highlight/languages/inform7.js
rename to static/editor.md/lib/highlight/languages/inform7.js
diff --git a/static/highlight/languages/ini.js b/static/editor.md/lib/highlight/languages/ini.js
similarity index 100%
rename from static/highlight/languages/ini.js
rename to static/editor.md/lib/highlight/languages/ini.js
diff --git a/static/highlight/languages/irpf90.js b/static/editor.md/lib/highlight/languages/irpf90.js
similarity index 100%
rename from static/highlight/languages/irpf90.js
rename to static/editor.md/lib/highlight/languages/irpf90.js
diff --git a/static/highlight/languages/java.js b/static/editor.md/lib/highlight/languages/java.js
similarity index 100%
rename from static/highlight/languages/java.js
rename to static/editor.md/lib/highlight/languages/java.js
diff --git a/static/highlight/languages/javascript.js b/static/editor.md/lib/highlight/languages/javascript.js
similarity index 100%
rename from static/highlight/languages/javascript.js
rename to static/editor.md/lib/highlight/languages/javascript.js
diff --git a/static/highlight/languages/json.js b/static/editor.md/lib/highlight/languages/json.js
similarity index 100%
rename from static/highlight/languages/json.js
rename to static/editor.md/lib/highlight/languages/json.js
diff --git a/static/highlight/languages/julia.js b/static/editor.md/lib/highlight/languages/julia.js
similarity index 100%
rename from static/highlight/languages/julia.js
rename to static/editor.md/lib/highlight/languages/julia.js
diff --git a/static/highlight/languages/kotlin.js b/static/editor.md/lib/highlight/languages/kotlin.js
similarity index 100%
rename from static/highlight/languages/kotlin.js
rename to static/editor.md/lib/highlight/languages/kotlin.js
diff --git a/static/highlight/languages/lasso.js b/static/editor.md/lib/highlight/languages/lasso.js
similarity index 100%
rename from static/highlight/languages/lasso.js
rename to static/editor.md/lib/highlight/languages/lasso.js
diff --git a/static/highlight/languages/ldif.js b/static/editor.md/lib/highlight/languages/ldif.js
similarity index 100%
rename from static/highlight/languages/ldif.js
rename to static/editor.md/lib/highlight/languages/ldif.js
diff --git a/static/highlight/languages/less.js b/static/editor.md/lib/highlight/languages/less.js
similarity index 100%
rename from static/highlight/languages/less.js
rename to static/editor.md/lib/highlight/languages/less.js
diff --git a/static/highlight/languages/lisp.js b/static/editor.md/lib/highlight/languages/lisp.js
similarity index 100%
rename from static/highlight/languages/lisp.js
rename to static/editor.md/lib/highlight/languages/lisp.js
diff --git a/static/highlight/languages/livecodeserver.js b/static/editor.md/lib/highlight/languages/livecodeserver.js
similarity index 100%
rename from static/highlight/languages/livecodeserver.js
rename to static/editor.md/lib/highlight/languages/livecodeserver.js
diff --git a/static/highlight/languages/livescript.js b/static/editor.md/lib/highlight/languages/livescript.js
similarity index 100%
rename from static/highlight/languages/livescript.js
rename to static/editor.md/lib/highlight/languages/livescript.js
diff --git a/static/highlight/languages/lsl.js b/static/editor.md/lib/highlight/languages/lsl.js
similarity index 100%
rename from static/highlight/languages/lsl.js
rename to static/editor.md/lib/highlight/languages/lsl.js
diff --git a/static/highlight/languages/lua.js b/static/editor.md/lib/highlight/languages/lua.js
similarity index 100%
rename from static/highlight/languages/lua.js
rename to static/editor.md/lib/highlight/languages/lua.js
diff --git a/static/highlight/languages/makefile.js b/static/editor.md/lib/highlight/languages/makefile.js
similarity index 100%
rename from static/highlight/languages/makefile.js
rename to static/editor.md/lib/highlight/languages/makefile.js
diff --git a/static/highlight/languages/markdown.js b/static/editor.md/lib/highlight/languages/markdown.js
similarity index 100%
rename from static/highlight/languages/markdown.js
rename to static/editor.md/lib/highlight/languages/markdown.js
diff --git a/static/highlight/languages/mathematica.js b/static/editor.md/lib/highlight/languages/mathematica.js
similarity index 100%
rename from static/highlight/languages/mathematica.js
rename to static/editor.md/lib/highlight/languages/mathematica.js
diff --git a/static/highlight/languages/matlab.js b/static/editor.md/lib/highlight/languages/matlab.js
similarity index 100%
rename from static/highlight/languages/matlab.js
rename to static/editor.md/lib/highlight/languages/matlab.js
diff --git a/static/highlight/languages/maxima.js b/static/editor.md/lib/highlight/languages/maxima.js
similarity index 100%
rename from static/highlight/languages/maxima.js
rename to static/editor.md/lib/highlight/languages/maxima.js
diff --git a/static/highlight/languages/mel.js b/static/editor.md/lib/highlight/languages/mel.js
similarity index 100%
rename from static/highlight/languages/mel.js
rename to static/editor.md/lib/highlight/languages/mel.js
diff --git a/static/highlight/languages/mercury.js b/static/editor.md/lib/highlight/languages/mercury.js
similarity index 100%
rename from static/highlight/languages/mercury.js
rename to static/editor.md/lib/highlight/languages/mercury.js
diff --git a/static/highlight/languages/mipsasm.js b/static/editor.md/lib/highlight/languages/mipsasm.js
similarity index 100%
rename from static/highlight/languages/mipsasm.js
rename to static/editor.md/lib/highlight/languages/mipsasm.js
diff --git a/static/highlight/languages/mizar.js b/static/editor.md/lib/highlight/languages/mizar.js
similarity index 100%
rename from static/highlight/languages/mizar.js
rename to static/editor.md/lib/highlight/languages/mizar.js
diff --git a/static/highlight/languages/mojolicious.js b/static/editor.md/lib/highlight/languages/mojolicious.js
similarity index 100%
rename from static/highlight/languages/mojolicious.js
rename to static/editor.md/lib/highlight/languages/mojolicious.js
diff --git a/static/highlight/languages/monkey.js b/static/editor.md/lib/highlight/languages/monkey.js
similarity index 100%
rename from static/highlight/languages/monkey.js
rename to static/editor.md/lib/highlight/languages/monkey.js
diff --git a/static/highlight/languages/moonscript.js b/static/editor.md/lib/highlight/languages/moonscript.js
similarity index 100%
rename from static/highlight/languages/moonscript.js
rename to static/editor.md/lib/highlight/languages/moonscript.js
diff --git a/static/highlight/languages/nginx.js b/static/editor.md/lib/highlight/languages/nginx.js
similarity index 100%
rename from static/highlight/languages/nginx.js
rename to static/editor.md/lib/highlight/languages/nginx.js
diff --git a/static/highlight/languages/nimrod.js b/static/editor.md/lib/highlight/languages/nimrod.js
similarity index 100%
rename from static/highlight/languages/nimrod.js
rename to static/editor.md/lib/highlight/languages/nimrod.js
diff --git a/static/highlight/languages/nix.js b/static/editor.md/lib/highlight/languages/nix.js
similarity index 100%
rename from static/highlight/languages/nix.js
rename to static/editor.md/lib/highlight/languages/nix.js
diff --git a/static/highlight/languages/nsis.js b/static/editor.md/lib/highlight/languages/nsis.js
similarity index 100%
rename from static/highlight/languages/nsis.js
rename to static/editor.md/lib/highlight/languages/nsis.js
diff --git a/static/highlight/languages/objectivec.js b/static/editor.md/lib/highlight/languages/objectivec.js
similarity index 100%
rename from static/highlight/languages/objectivec.js
rename to static/editor.md/lib/highlight/languages/objectivec.js
diff --git a/static/highlight/languages/ocaml.js b/static/editor.md/lib/highlight/languages/ocaml.js
similarity index 100%
rename from static/highlight/languages/ocaml.js
rename to static/editor.md/lib/highlight/languages/ocaml.js
diff --git a/static/highlight/languages/openscad.js b/static/editor.md/lib/highlight/languages/openscad.js
similarity index 100%
rename from static/highlight/languages/openscad.js
rename to static/editor.md/lib/highlight/languages/openscad.js
diff --git a/static/highlight/languages/oxygene.js b/static/editor.md/lib/highlight/languages/oxygene.js
similarity index 100%
rename from static/highlight/languages/oxygene.js
rename to static/editor.md/lib/highlight/languages/oxygene.js
diff --git a/static/highlight/languages/parser3.js b/static/editor.md/lib/highlight/languages/parser3.js
similarity index 100%
rename from static/highlight/languages/parser3.js
rename to static/editor.md/lib/highlight/languages/parser3.js
diff --git a/static/highlight/languages/perl.js b/static/editor.md/lib/highlight/languages/perl.js
similarity index 100%
rename from static/highlight/languages/perl.js
rename to static/editor.md/lib/highlight/languages/perl.js
diff --git a/static/highlight/languages/pf.js b/static/editor.md/lib/highlight/languages/pf.js
similarity index 100%
rename from static/highlight/languages/pf.js
rename to static/editor.md/lib/highlight/languages/pf.js
diff --git a/static/highlight/languages/php.js b/static/editor.md/lib/highlight/languages/php.js
similarity index 100%
rename from static/highlight/languages/php.js
rename to static/editor.md/lib/highlight/languages/php.js
diff --git a/static/highlight/languages/pony.js b/static/editor.md/lib/highlight/languages/pony.js
similarity index 100%
rename from static/highlight/languages/pony.js
rename to static/editor.md/lib/highlight/languages/pony.js
diff --git a/static/highlight/languages/powershell.js b/static/editor.md/lib/highlight/languages/powershell.js
similarity index 100%
rename from static/highlight/languages/powershell.js
rename to static/editor.md/lib/highlight/languages/powershell.js
diff --git a/static/highlight/languages/processing.js b/static/editor.md/lib/highlight/languages/processing.js
similarity index 100%
rename from static/highlight/languages/processing.js
rename to static/editor.md/lib/highlight/languages/processing.js
diff --git a/static/highlight/languages/profile.js b/static/editor.md/lib/highlight/languages/profile.js
similarity index 100%
rename from static/highlight/languages/profile.js
rename to static/editor.md/lib/highlight/languages/profile.js
diff --git a/static/highlight/languages/prolog.js b/static/editor.md/lib/highlight/languages/prolog.js
similarity index 100%
rename from static/highlight/languages/prolog.js
rename to static/editor.md/lib/highlight/languages/prolog.js
diff --git a/static/highlight/languages/protobuf.js b/static/editor.md/lib/highlight/languages/protobuf.js
similarity index 100%
rename from static/highlight/languages/protobuf.js
rename to static/editor.md/lib/highlight/languages/protobuf.js
diff --git a/static/highlight/languages/puppet.js b/static/editor.md/lib/highlight/languages/puppet.js
similarity index 100%
rename from static/highlight/languages/puppet.js
rename to static/editor.md/lib/highlight/languages/puppet.js
diff --git a/static/highlight/languages/purebasic.js b/static/editor.md/lib/highlight/languages/purebasic.js
similarity index 100%
rename from static/highlight/languages/purebasic.js
rename to static/editor.md/lib/highlight/languages/purebasic.js
diff --git a/static/highlight/languages/python.js b/static/editor.md/lib/highlight/languages/python.js
similarity index 100%
rename from static/highlight/languages/python.js
rename to static/editor.md/lib/highlight/languages/python.js
diff --git a/static/highlight/languages/q.js b/static/editor.md/lib/highlight/languages/q.js
similarity index 100%
rename from static/highlight/languages/q.js
rename to static/editor.md/lib/highlight/languages/q.js
diff --git a/static/highlight/languages/qml.js b/static/editor.md/lib/highlight/languages/qml.js
similarity index 100%
rename from static/highlight/languages/qml.js
rename to static/editor.md/lib/highlight/languages/qml.js
diff --git a/static/highlight/languages/r.js b/static/editor.md/lib/highlight/languages/r.js
similarity index 100%
rename from static/highlight/languages/r.js
rename to static/editor.md/lib/highlight/languages/r.js
diff --git a/static/highlight/languages/rib.js b/static/editor.md/lib/highlight/languages/rib.js
similarity index 100%
rename from static/highlight/languages/rib.js
rename to static/editor.md/lib/highlight/languages/rib.js
diff --git a/static/highlight/languages/roboconf.js b/static/editor.md/lib/highlight/languages/roboconf.js
similarity index 100%
rename from static/highlight/languages/roboconf.js
rename to static/editor.md/lib/highlight/languages/roboconf.js
diff --git a/static/highlight/languages/rsl.js b/static/editor.md/lib/highlight/languages/rsl.js
similarity index 100%
rename from static/highlight/languages/rsl.js
rename to static/editor.md/lib/highlight/languages/rsl.js
diff --git a/static/highlight/languages/ruby.js b/static/editor.md/lib/highlight/languages/ruby.js
similarity index 100%
rename from static/highlight/languages/ruby.js
rename to static/editor.md/lib/highlight/languages/ruby.js
diff --git a/static/highlight/languages/ruleslanguage.js b/static/editor.md/lib/highlight/languages/ruleslanguage.js
similarity index 100%
rename from static/highlight/languages/ruleslanguage.js
rename to static/editor.md/lib/highlight/languages/ruleslanguage.js
diff --git a/static/highlight/languages/rust.js b/static/editor.md/lib/highlight/languages/rust.js
similarity index 100%
rename from static/highlight/languages/rust.js
rename to static/editor.md/lib/highlight/languages/rust.js
diff --git a/static/highlight/languages/scala.js b/static/editor.md/lib/highlight/languages/scala.js
similarity index 100%
rename from static/highlight/languages/scala.js
rename to static/editor.md/lib/highlight/languages/scala.js
diff --git a/static/highlight/languages/scheme.js b/static/editor.md/lib/highlight/languages/scheme.js
similarity index 100%
rename from static/highlight/languages/scheme.js
rename to static/editor.md/lib/highlight/languages/scheme.js
diff --git a/static/highlight/languages/scilab.js b/static/editor.md/lib/highlight/languages/scilab.js
similarity index 100%
rename from static/highlight/languages/scilab.js
rename to static/editor.md/lib/highlight/languages/scilab.js
diff --git a/static/highlight/languages/scss.js b/static/editor.md/lib/highlight/languages/scss.js
similarity index 100%
rename from static/highlight/languages/scss.js
rename to static/editor.md/lib/highlight/languages/scss.js
diff --git a/static/highlight/languages/smali.js b/static/editor.md/lib/highlight/languages/smali.js
similarity index 100%
rename from static/highlight/languages/smali.js
rename to static/editor.md/lib/highlight/languages/smali.js
diff --git a/static/highlight/languages/smalltalk.js b/static/editor.md/lib/highlight/languages/smalltalk.js
similarity index 100%
rename from static/highlight/languages/smalltalk.js
rename to static/editor.md/lib/highlight/languages/smalltalk.js
diff --git a/static/highlight/languages/sml.js b/static/editor.md/lib/highlight/languages/sml.js
similarity index 100%
rename from static/highlight/languages/sml.js
rename to static/editor.md/lib/highlight/languages/sml.js
diff --git a/static/highlight/languages/sqf.js b/static/editor.md/lib/highlight/languages/sqf.js
similarity index 100%
rename from static/highlight/languages/sqf.js
rename to static/editor.md/lib/highlight/languages/sqf.js
diff --git a/static/highlight/languages/sql.js b/static/editor.md/lib/highlight/languages/sql.js
similarity index 100%
rename from static/highlight/languages/sql.js
rename to static/editor.md/lib/highlight/languages/sql.js
diff --git a/static/highlight/languages/stan.js b/static/editor.md/lib/highlight/languages/stan.js
similarity index 100%
rename from static/highlight/languages/stan.js
rename to static/editor.md/lib/highlight/languages/stan.js
diff --git a/static/highlight/languages/stata.js b/static/editor.md/lib/highlight/languages/stata.js
similarity index 100%
rename from static/highlight/languages/stata.js
rename to static/editor.md/lib/highlight/languages/stata.js
diff --git a/static/highlight/languages/step21.js b/static/editor.md/lib/highlight/languages/step21.js
similarity index 100%
rename from static/highlight/languages/step21.js
rename to static/editor.md/lib/highlight/languages/step21.js
diff --git a/static/highlight/languages/stylus.js b/static/editor.md/lib/highlight/languages/stylus.js
similarity index 100%
rename from static/highlight/languages/stylus.js
rename to static/editor.md/lib/highlight/languages/stylus.js
diff --git a/static/highlight/languages/subunit.js b/static/editor.md/lib/highlight/languages/subunit.js
similarity index 100%
rename from static/highlight/languages/subunit.js
rename to static/editor.md/lib/highlight/languages/subunit.js
diff --git a/static/highlight/languages/swift.js b/static/editor.md/lib/highlight/languages/swift.js
similarity index 100%
rename from static/highlight/languages/swift.js
rename to static/editor.md/lib/highlight/languages/swift.js
diff --git a/static/highlight/languages/taggerscript.js b/static/editor.md/lib/highlight/languages/taggerscript.js
similarity index 100%
rename from static/highlight/languages/taggerscript.js
rename to static/editor.md/lib/highlight/languages/taggerscript.js
diff --git a/static/highlight/languages/tap.js b/static/editor.md/lib/highlight/languages/tap.js
similarity index 100%
rename from static/highlight/languages/tap.js
rename to static/editor.md/lib/highlight/languages/tap.js
diff --git a/static/highlight/languages/tcl.js b/static/editor.md/lib/highlight/languages/tcl.js
similarity index 100%
rename from static/highlight/languages/tcl.js
rename to static/editor.md/lib/highlight/languages/tcl.js
diff --git a/static/highlight/languages/tex.js b/static/editor.md/lib/highlight/languages/tex.js
similarity index 100%
rename from static/highlight/languages/tex.js
rename to static/editor.md/lib/highlight/languages/tex.js
diff --git a/static/highlight/languages/thrift.js b/static/editor.md/lib/highlight/languages/thrift.js
similarity index 100%
rename from static/highlight/languages/thrift.js
rename to static/editor.md/lib/highlight/languages/thrift.js
diff --git a/static/highlight/languages/tp.js b/static/editor.md/lib/highlight/languages/tp.js
similarity index 100%
rename from static/highlight/languages/tp.js
rename to static/editor.md/lib/highlight/languages/tp.js
diff --git a/static/highlight/languages/twig.js b/static/editor.md/lib/highlight/languages/twig.js
similarity index 100%
rename from static/highlight/languages/twig.js
rename to static/editor.md/lib/highlight/languages/twig.js
diff --git a/static/highlight/languages/typescript.js b/static/editor.md/lib/highlight/languages/typescript.js
similarity index 100%
rename from static/highlight/languages/typescript.js
rename to static/editor.md/lib/highlight/languages/typescript.js
diff --git a/static/highlight/languages/vala.js b/static/editor.md/lib/highlight/languages/vala.js
similarity index 100%
rename from static/highlight/languages/vala.js
rename to static/editor.md/lib/highlight/languages/vala.js
diff --git a/static/highlight/languages/vbnet.js b/static/editor.md/lib/highlight/languages/vbnet.js
similarity index 100%
rename from static/highlight/languages/vbnet.js
rename to static/editor.md/lib/highlight/languages/vbnet.js
diff --git a/static/highlight/languages/vbscript-html.js b/static/editor.md/lib/highlight/languages/vbscript-html.js
similarity index 100%
rename from static/highlight/languages/vbscript-html.js
rename to static/editor.md/lib/highlight/languages/vbscript-html.js
diff --git a/static/highlight/languages/vbscript.js b/static/editor.md/lib/highlight/languages/vbscript.js
similarity index 100%
rename from static/highlight/languages/vbscript.js
rename to static/editor.md/lib/highlight/languages/vbscript.js
diff --git a/static/highlight/languages/verilog.js b/static/editor.md/lib/highlight/languages/verilog.js
similarity index 100%
rename from static/highlight/languages/verilog.js
rename to static/editor.md/lib/highlight/languages/verilog.js
diff --git a/static/highlight/languages/vhdl.js b/static/editor.md/lib/highlight/languages/vhdl.js
similarity index 100%
rename from static/highlight/languages/vhdl.js
rename to static/editor.md/lib/highlight/languages/vhdl.js
diff --git a/static/highlight/languages/vim.js b/static/editor.md/lib/highlight/languages/vim.js
similarity index 100%
rename from static/highlight/languages/vim.js
rename to static/editor.md/lib/highlight/languages/vim.js
diff --git a/static/highlight/languages/x86asm.js b/static/editor.md/lib/highlight/languages/x86asm.js
similarity index 100%
rename from static/highlight/languages/x86asm.js
rename to static/editor.md/lib/highlight/languages/x86asm.js
diff --git a/static/highlight/languages/xl.js b/static/editor.md/lib/highlight/languages/xl.js
similarity index 100%
rename from static/highlight/languages/xl.js
rename to static/editor.md/lib/highlight/languages/xl.js
diff --git a/static/highlight/languages/xml.js b/static/editor.md/lib/highlight/languages/xml.js
similarity index 100%
rename from static/highlight/languages/xml.js
rename to static/editor.md/lib/highlight/languages/xml.js
diff --git a/static/highlight/languages/xquery.js b/static/editor.md/lib/highlight/languages/xquery.js
similarity index 100%
rename from static/highlight/languages/xquery.js
rename to static/editor.md/lib/highlight/languages/xquery.js
diff --git a/static/highlight/languages/yaml.js b/static/editor.md/lib/highlight/languages/yaml.js
similarity index 100%
rename from static/highlight/languages/yaml.js
rename to static/editor.md/lib/highlight/languages/yaml.js
diff --git a/static/highlight/languages/zephir.js b/static/editor.md/lib/highlight/languages/zephir.js
similarity index 100%
rename from static/highlight/languages/zephir.js
rename to static/editor.md/lib/highlight/languages/zephir.js
diff --git a/static/highlight/styles/agate.css b/static/editor.md/lib/highlight/styles/agate.css
similarity index 100%
rename from static/highlight/styles/agate.css
rename to static/editor.md/lib/highlight/styles/agate.css
diff --git a/static/highlight/styles/androidstudio.css b/static/editor.md/lib/highlight/styles/androidstudio.css
similarity index 100%
rename from static/highlight/styles/androidstudio.css
rename to static/editor.md/lib/highlight/styles/androidstudio.css
diff --git a/static/highlight/styles/arduino-light.css b/static/editor.md/lib/highlight/styles/arduino-light.css
similarity index 100%
rename from static/highlight/styles/arduino-light.css
rename to static/editor.md/lib/highlight/styles/arduino-light.css
diff --git a/static/highlight/styles/arta.css b/static/editor.md/lib/highlight/styles/arta.css
similarity index 100%
rename from static/highlight/styles/arta.css
rename to static/editor.md/lib/highlight/styles/arta.css
diff --git a/static/highlight/styles/ascetic.css b/static/editor.md/lib/highlight/styles/ascetic.css
similarity index 100%
rename from static/highlight/styles/ascetic.css
rename to static/editor.md/lib/highlight/styles/ascetic.css
diff --git a/static/highlight/styles/atelier-cave-dark.css b/static/editor.md/lib/highlight/styles/atelier-cave-dark.css
similarity index 100%
rename from static/highlight/styles/atelier-cave-dark.css
rename to static/editor.md/lib/highlight/styles/atelier-cave-dark.css
diff --git a/static/highlight/styles/atelier-cave-light.css b/static/editor.md/lib/highlight/styles/atelier-cave-light.css
similarity index 100%
rename from static/highlight/styles/atelier-cave-light.css
rename to static/editor.md/lib/highlight/styles/atelier-cave-light.css
diff --git a/static/highlight/styles/atelier-dune-dark.css b/static/editor.md/lib/highlight/styles/atelier-dune-dark.css
similarity index 100%
rename from static/highlight/styles/atelier-dune-dark.css
rename to static/editor.md/lib/highlight/styles/atelier-dune-dark.css
diff --git a/static/highlight/styles/atelier-dune-light.css b/static/editor.md/lib/highlight/styles/atelier-dune-light.css
similarity index 100%
rename from static/highlight/styles/atelier-dune-light.css
rename to static/editor.md/lib/highlight/styles/atelier-dune-light.css
diff --git a/static/highlight/styles/atelier-estuary-dark.css b/static/editor.md/lib/highlight/styles/atelier-estuary-dark.css
similarity index 100%
rename from static/highlight/styles/atelier-estuary-dark.css
rename to static/editor.md/lib/highlight/styles/atelier-estuary-dark.css
diff --git a/static/highlight/styles/atelier-estuary-light.css b/static/editor.md/lib/highlight/styles/atelier-estuary-light.css
similarity index 100%
rename from static/highlight/styles/atelier-estuary-light.css
rename to static/editor.md/lib/highlight/styles/atelier-estuary-light.css
diff --git a/static/highlight/styles/atelier-forest-dark.css b/static/editor.md/lib/highlight/styles/atelier-forest-dark.css
similarity index 100%
rename from static/highlight/styles/atelier-forest-dark.css
rename to static/editor.md/lib/highlight/styles/atelier-forest-dark.css
diff --git a/static/highlight/styles/atelier-forest-light.css b/static/editor.md/lib/highlight/styles/atelier-forest-light.css
similarity index 100%
rename from static/highlight/styles/atelier-forest-light.css
rename to static/editor.md/lib/highlight/styles/atelier-forest-light.css
diff --git a/static/highlight/styles/atelier-heath-dark.css b/static/editor.md/lib/highlight/styles/atelier-heath-dark.css
similarity index 100%
rename from static/highlight/styles/atelier-heath-dark.css
rename to static/editor.md/lib/highlight/styles/atelier-heath-dark.css
diff --git a/static/highlight/styles/atelier-heath-light.css b/static/editor.md/lib/highlight/styles/atelier-heath-light.css
similarity index 100%
rename from static/highlight/styles/atelier-heath-light.css
rename to static/editor.md/lib/highlight/styles/atelier-heath-light.css
diff --git a/static/highlight/styles/atelier-lakeside-dark.css b/static/editor.md/lib/highlight/styles/atelier-lakeside-dark.css
similarity index 100%
rename from static/highlight/styles/atelier-lakeside-dark.css
rename to static/editor.md/lib/highlight/styles/atelier-lakeside-dark.css
diff --git a/static/highlight/styles/atelier-lakeside-light.css b/static/editor.md/lib/highlight/styles/atelier-lakeside-light.css
similarity index 100%
rename from static/highlight/styles/atelier-lakeside-light.css
rename to static/editor.md/lib/highlight/styles/atelier-lakeside-light.css
diff --git a/static/highlight/styles/atelier-plateau-dark.css b/static/editor.md/lib/highlight/styles/atelier-plateau-dark.css
similarity index 100%
rename from static/highlight/styles/atelier-plateau-dark.css
rename to static/editor.md/lib/highlight/styles/atelier-plateau-dark.css
diff --git a/static/highlight/styles/atelier-plateau-light.css b/static/editor.md/lib/highlight/styles/atelier-plateau-light.css
similarity index 100%
rename from static/highlight/styles/atelier-plateau-light.css
rename to static/editor.md/lib/highlight/styles/atelier-plateau-light.css
diff --git a/static/highlight/styles/atelier-savanna-dark.css b/static/editor.md/lib/highlight/styles/atelier-savanna-dark.css
similarity index 100%
rename from static/highlight/styles/atelier-savanna-dark.css
rename to static/editor.md/lib/highlight/styles/atelier-savanna-dark.css
diff --git a/static/highlight/styles/atelier-savanna-light.css b/static/editor.md/lib/highlight/styles/atelier-savanna-light.css
similarity index 100%
rename from static/highlight/styles/atelier-savanna-light.css
rename to static/editor.md/lib/highlight/styles/atelier-savanna-light.css
diff --git a/static/highlight/styles/atelier-seaside-dark.css b/static/editor.md/lib/highlight/styles/atelier-seaside-dark.css
similarity index 100%
rename from static/highlight/styles/atelier-seaside-dark.css
rename to static/editor.md/lib/highlight/styles/atelier-seaside-dark.css
diff --git a/static/highlight/styles/atelier-seaside-light.css b/static/editor.md/lib/highlight/styles/atelier-seaside-light.css
similarity index 100%
rename from static/highlight/styles/atelier-seaside-light.css
rename to static/editor.md/lib/highlight/styles/atelier-seaside-light.css
diff --git a/static/highlight/styles/atelier-sulphurpool-dark.css b/static/editor.md/lib/highlight/styles/atelier-sulphurpool-dark.css
similarity index 100%
rename from static/highlight/styles/atelier-sulphurpool-dark.css
rename to static/editor.md/lib/highlight/styles/atelier-sulphurpool-dark.css
diff --git a/static/highlight/styles/atelier-sulphurpool-light.css b/static/editor.md/lib/highlight/styles/atelier-sulphurpool-light.css
similarity index 100%
rename from static/highlight/styles/atelier-sulphurpool-light.css
rename to static/editor.md/lib/highlight/styles/atelier-sulphurpool-light.css
diff --git a/static/highlight/styles/atom-one-dark.css b/static/editor.md/lib/highlight/styles/atom-one-dark.css
similarity index 100%
rename from static/highlight/styles/atom-one-dark.css
rename to static/editor.md/lib/highlight/styles/atom-one-dark.css
diff --git a/static/highlight/styles/atom-one-light.css b/static/editor.md/lib/highlight/styles/atom-one-light.css
similarity index 100%
rename from static/highlight/styles/atom-one-light.css
rename to static/editor.md/lib/highlight/styles/atom-one-light.css
diff --git a/static/highlight/styles/brown-paper.css b/static/editor.md/lib/highlight/styles/brown-paper.css
similarity index 100%
rename from static/highlight/styles/brown-paper.css
rename to static/editor.md/lib/highlight/styles/brown-paper.css
diff --git a/static/highlight/styles/brown-papersq.png b/static/editor.md/lib/highlight/styles/brown-papersq.png
similarity index 100%
rename from static/highlight/styles/brown-papersq.png
rename to static/editor.md/lib/highlight/styles/brown-papersq.png
diff --git a/static/highlight/styles/codepen-embed.css b/static/editor.md/lib/highlight/styles/codepen-embed.css
similarity index 100%
rename from static/highlight/styles/codepen-embed.css
rename to static/editor.md/lib/highlight/styles/codepen-embed.css
diff --git a/static/highlight/styles/color-brewer.css b/static/editor.md/lib/highlight/styles/color-brewer.css
similarity index 100%
rename from static/highlight/styles/color-brewer.css
rename to static/editor.md/lib/highlight/styles/color-brewer.css
diff --git a/static/highlight/styles/darcula.css b/static/editor.md/lib/highlight/styles/darcula.css
similarity index 100%
rename from static/highlight/styles/darcula.css
rename to static/editor.md/lib/highlight/styles/darcula.css
diff --git a/static/highlight/styles/dark.css b/static/editor.md/lib/highlight/styles/dark.css
similarity index 100%
rename from static/highlight/styles/dark.css
rename to static/editor.md/lib/highlight/styles/dark.css
diff --git a/static/highlight/styles/darkula.css b/static/editor.md/lib/highlight/styles/darkula.css
similarity index 100%
rename from static/highlight/styles/darkula.css
rename to static/editor.md/lib/highlight/styles/darkula.css
diff --git a/static/highlight/styles/default.css b/static/editor.md/lib/highlight/styles/default.css
similarity index 100%
rename from static/highlight/styles/default.css
rename to static/editor.md/lib/highlight/styles/default.css
diff --git a/static/highlight/styles/docco.css b/static/editor.md/lib/highlight/styles/docco.css
similarity index 100%
rename from static/highlight/styles/docco.css
rename to static/editor.md/lib/highlight/styles/docco.css
diff --git a/static/highlight/styles/dracula.css b/static/editor.md/lib/highlight/styles/dracula.css
similarity index 100%
rename from static/highlight/styles/dracula.css
rename to static/editor.md/lib/highlight/styles/dracula.css
diff --git a/static/highlight/styles/far.css b/static/editor.md/lib/highlight/styles/far.css
similarity index 100%
rename from static/highlight/styles/far.css
rename to static/editor.md/lib/highlight/styles/far.css
diff --git a/static/highlight/styles/foundation.css b/static/editor.md/lib/highlight/styles/foundation.css
similarity index 100%
rename from static/highlight/styles/foundation.css
rename to static/editor.md/lib/highlight/styles/foundation.css
diff --git a/static/highlight/styles/github-gist.css b/static/editor.md/lib/highlight/styles/github-gist.css
similarity index 100%
rename from static/highlight/styles/github-gist.css
rename to static/editor.md/lib/highlight/styles/github-gist.css
diff --git a/static/highlight/styles/github.css b/static/editor.md/lib/highlight/styles/github.css
similarity index 100%
rename from static/highlight/styles/github.css
rename to static/editor.md/lib/highlight/styles/github.css
diff --git a/static/highlight/styles/googlecode.css b/static/editor.md/lib/highlight/styles/googlecode.css
similarity index 100%
rename from static/highlight/styles/googlecode.css
rename to static/editor.md/lib/highlight/styles/googlecode.css
diff --git a/static/highlight/styles/grayscale.css b/static/editor.md/lib/highlight/styles/grayscale.css
similarity index 100%
rename from static/highlight/styles/grayscale.css
rename to static/editor.md/lib/highlight/styles/grayscale.css
diff --git a/static/highlight/styles/gruvbox-dark.css b/static/editor.md/lib/highlight/styles/gruvbox-dark.css
similarity index 100%
rename from static/highlight/styles/gruvbox-dark.css
rename to static/editor.md/lib/highlight/styles/gruvbox-dark.css
diff --git a/static/highlight/styles/gruvbox-light.css b/static/editor.md/lib/highlight/styles/gruvbox-light.css
similarity index 100%
rename from static/highlight/styles/gruvbox-light.css
rename to static/editor.md/lib/highlight/styles/gruvbox-light.css
diff --git a/static/highlight/styles/hopscotch.css b/static/editor.md/lib/highlight/styles/hopscotch.css
similarity index 100%
rename from static/highlight/styles/hopscotch.css
rename to static/editor.md/lib/highlight/styles/hopscotch.css
diff --git a/static/highlight/styles/hybrid.css b/static/editor.md/lib/highlight/styles/hybrid.css
similarity index 100%
rename from static/highlight/styles/hybrid.css
rename to static/editor.md/lib/highlight/styles/hybrid.css
diff --git a/static/highlight/styles/idea.css b/static/editor.md/lib/highlight/styles/idea.css
similarity index 100%
rename from static/highlight/styles/idea.css
rename to static/editor.md/lib/highlight/styles/idea.css
diff --git a/static/highlight/styles/ir-black.css b/static/editor.md/lib/highlight/styles/ir-black.css
similarity index 100%
rename from static/highlight/styles/ir-black.css
rename to static/editor.md/lib/highlight/styles/ir-black.css
diff --git a/static/highlight/styles/kimbie.dark.css b/static/editor.md/lib/highlight/styles/kimbie.dark.css
similarity index 100%
rename from static/highlight/styles/kimbie.dark.css
rename to static/editor.md/lib/highlight/styles/kimbie.dark.css
diff --git a/static/highlight/styles/kimbie.light.css b/static/editor.md/lib/highlight/styles/kimbie.light.css
similarity index 100%
rename from static/highlight/styles/kimbie.light.css
rename to static/editor.md/lib/highlight/styles/kimbie.light.css
diff --git a/static/highlight/styles/magula.css b/static/editor.md/lib/highlight/styles/magula.css
similarity index 100%
rename from static/highlight/styles/magula.css
rename to static/editor.md/lib/highlight/styles/magula.css
diff --git a/static/highlight/styles/mono-blue.css b/static/editor.md/lib/highlight/styles/mono-blue.css
similarity index 100%
rename from static/highlight/styles/mono-blue.css
rename to static/editor.md/lib/highlight/styles/mono-blue.css
diff --git a/static/highlight/styles/monokai-sublime.css b/static/editor.md/lib/highlight/styles/monokai-sublime.css
similarity index 100%
rename from static/highlight/styles/monokai-sublime.css
rename to static/editor.md/lib/highlight/styles/monokai-sublime.css
diff --git a/static/highlight/styles/monokai.css b/static/editor.md/lib/highlight/styles/monokai.css
similarity index 100%
rename from static/highlight/styles/monokai.css
rename to static/editor.md/lib/highlight/styles/monokai.css
diff --git a/static/highlight/styles/obsidian.css b/static/editor.md/lib/highlight/styles/obsidian.css
similarity index 100%
rename from static/highlight/styles/obsidian.css
rename to static/editor.md/lib/highlight/styles/obsidian.css
diff --git a/static/highlight/styles/ocean.css b/static/editor.md/lib/highlight/styles/ocean.css
similarity index 100%
rename from static/highlight/styles/ocean.css
rename to static/editor.md/lib/highlight/styles/ocean.css
diff --git a/static/highlight/styles/paraiso-dark.css b/static/editor.md/lib/highlight/styles/paraiso-dark.css
similarity index 100%
rename from static/highlight/styles/paraiso-dark.css
rename to static/editor.md/lib/highlight/styles/paraiso-dark.css
diff --git a/static/highlight/styles/paraiso-light.css b/static/editor.md/lib/highlight/styles/paraiso-light.css
similarity index 100%
rename from static/highlight/styles/paraiso-light.css
rename to static/editor.md/lib/highlight/styles/paraiso-light.css
diff --git a/static/highlight/styles/pojoaque.css b/static/editor.md/lib/highlight/styles/pojoaque.css
similarity index 100%
rename from static/highlight/styles/pojoaque.css
rename to static/editor.md/lib/highlight/styles/pojoaque.css
diff --git a/static/highlight/styles/pojoaque.jpg b/static/editor.md/lib/highlight/styles/pojoaque.jpg
similarity index 100%
rename from static/highlight/styles/pojoaque.jpg
rename to static/editor.md/lib/highlight/styles/pojoaque.jpg
diff --git a/static/highlight/styles/purebasic.css b/static/editor.md/lib/highlight/styles/purebasic.css
similarity index 100%
rename from static/highlight/styles/purebasic.css
rename to static/editor.md/lib/highlight/styles/purebasic.css
diff --git a/static/highlight/styles/qtcreator_dark.css b/static/editor.md/lib/highlight/styles/qtcreator_dark.css
similarity index 100%
rename from static/highlight/styles/qtcreator_dark.css
rename to static/editor.md/lib/highlight/styles/qtcreator_dark.css
diff --git a/static/highlight/styles/qtcreator_light.css b/static/editor.md/lib/highlight/styles/qtcreator_light.css
similarity index 100%
rename from static/highlight/styles/qtcreator_light.css
rename to static/editor.md/lib/highlight/styles/qtcreator_light.css
diff --git a/static/highlight/styles/railscasts.css b/static/editor.md/lib/highlight/styles/railscasts.css
similarity index 100%
rename from static/highlight/styles/railscasts.css
rename to static/editor.md/lib/highlight/styles/railscasts.css
diff --git a/static/highlight/styles/rainbow.css b/static/editor.md/lib/highlight/styles/rainbow.css
similarity index 100%
rename from static/highlight/styles/rainbow.css
rename to static/editor.md/lib/highlight/styles/rainbow.css
diff --git a/static/highlight/styles/school-book.css b/static/editor.md/lib/highlight/styles/school-book.css
similarity index 100%
rename from static/highlight/styles/school-book.css
rename to static/editor.md/lib/highlight/styles/school-book.css
diff --git a/static/highlight/styles/school-book.png b/static/editor.md/lib/highlight/styles/school-book.png
similarity index 100%
rename from static/highlight/styles/school-book.png
rename to static/editor.md/lib/highlight/styles/school-book.png
diff --git a/static/highlight/styles/solarized-dark.css b/static/editor.md/lib/highlight/styles/solarized-dark.css
similarity index 100%
rename from static/highlight/styles/solarized-dark.css
rename to static/editor.md/lib/highlight/styles/solarized-dark.css
diff --git a/static/highlight/styles/solarized-light.css b/static/editor.md/lib/highlight/styles/solarized-light.css
similarity index 100%
rename from static/highlight/styles/solarized-light.css
rename to static/editor.md/lib/highlight/styles/solarized-light.css
diff --git a/static/highlight/styles/sunburst.css b/static/editor.md/lib/highlight/styles/sunburst.css
similarity index 100%
rename from static/highlight/styles/sunburst.css
rename to static/editor.md/lib/highlight/styles/sunburst.css
diff --git a/static/highlight/styles/tomorrow-night-blue.css b/static/editor.md/lib/highlight/styles/tomorrow-night-blue.css
similarity index 100%
rename from static/highlight/styles/tomorrow-night-blue.css
rename to static/editor.md/lib/highlight/styles/tomorrow-night-blue.css
diff --git a/static/highlight/styles/tomorrow-night-bright.css b/static/editor.md/lib/highlight/styles/tomorrow-night-bright.css
similarity index 100%
rename from static/highlight/styles/tomorrow-night-bright.css
rename to static/editor.md/lib/highlight/styles/tomorrow-night-bright.css
diff --git a/static/highlight/styles/tomorrow-night-eighties.css b/static/editor.md/lib/highlight/styles/tomorrow-night-eighties.css
similarity index 100%
rename from static/highlight/styles/tomorrow-night-eighties.css
rename to static/editor.md/lib/highlight/styles/tomorrow-night-eighties.css
diff --git a/static/highlight/styles/tomorrow-night.css b/static/editor.md/lib/highlight/styles/tomorrow-night.css
similarity index 100%
rename from static/highlight/styles/tomorrow-night.css
rename to static/editor.md/lib/highlight/styles/tomorrow-night.css
diff --git a/static/highlight/styles/tomorrow.css b/static/editor.md/lib/highlight/styles/tomorrow.css
similarity index 100%
rename from static/highlight/styles/tomorrow.css
rename to static/editor.md/lib/highlight/styles/tomorrow.css
diff --git a/static/highlight/styles/vs.css b/static/editor.md/lib/highlight/styles/vs.css
similarity index 100%
rename from static/highlight/styles/vs.css
rename to static/editor.md/lib/highlight/styles/vs.css
diff --git a/static/highlight/styles/xcode.css b/static/editor.md/lib/highlight/styles/xcode.css
similarity index 100%
rename from static/highlight/styles/xcode.css
rename to static/editor.md/lib/highlight/styles/xcode.css
diff --git a/static/highlight/styles/xt256.css b/static/editor.md/lib/highlight/styles/xt256.css
similarity index 100%
rename from static/highlight/styles/xt256.css
rename to static/editor.md/lib/highlight/styles/xt256.css
diff --git a/static/highlight/styles/zenburn.css b/static/editor.md/lib/highlight/styles/zenburn.css
similarity index 100%
rename from static/highlight/styles/zenburn.css
rename to static/editor.md/lib/highlight/styles/zenburn.css
diff --git a/static/js/blog.js b/static/js/blog.js
index 89252282..e7e02b92 100644
--- a/static/js/blog.js
+++ b/static/js/blog.js
@@ -20,6 +20,7 @@ $(function () {
htmlDecode: "style,script,iframe,title,onmouseover,onmouseout,style",
lineNumbers: false,
sequenceDiagram: true,
+ highlightStyle: window.highlightStyle ? window.highlightStyle : "github",
tocStartLevel: 1,
tocm: true,
tex:true,
diff --git a/static/js/editor.js b/static/js/editor.js
index f1ae629c..a2aae57a 100644
--- a/static/js/editor.js
+++ b/static/js/editor.js
@@ -318,8 +318,6 @@ function initHighlighting() {
$('pre code,pre.ql-syntax').each(function (i, block) {
hljs.highlightBlock(block);
});
-
- hljs.initLineNumbersOnLoad();
}
$(function () {
window.vueApp = new Vue({
diff --git a/static/js/kancloud.js b/static/js/kancloud.js
index 74ad3d7a..9d5d50c4 100644
--- a/static/js/kancloud.js
+++ b/static/js/kancloud.js
@@ -79,7 +79,7 @@ function initHighlighting() {
}
hljs.highlightBlock(block);
});
- hljs.initLineNumbersOnLoad();
+ // hljs.initLineNumbersOnLoad();
}catch (e){
console.log(e);
}
diff --git a/static/js/markdown.js b/static/js/markdown.js
index b2c9db51..50eb0132 100644
--- a/static/js/markdown.js
+++ b/static/js/markdown.js
@@ -23,6 +23,8 @@ $(function () {
sequenceDiagram: true,
tocStartLevel: 1,
tocm: true,
+ previewCodeHighlight: 1,
+ highlightStyle: window.highlightStyle ? window.highlightStyle : "github",
tex:true,
saveHTMLToTextarea: true,
diff --git a/views/blog/index.tpl b/views/blog/index.tpl
index 20a776dc..c8032ea2 100644
--- a/views/blog/index.tpl
+++ b/views/blog/index.tpl
@@ -14,18 +14,13 @@
-
-
-
-
-
-
+
+
-
@@ -131,15 +126,11 @@
{{template "widgets/footer.tpl" .}}
+
-
-
-
-
-