├── img ├── Mango1.png ├── Mango1_128.png ├── Mango1_256.png ├── Mango1_48.png ├── Mango1_72.png ├── Mango1_96.png ├── mango_code.png ├── mango_list.png ├── mango_math.png ├── mango_new.png ├── mango_open.png ├── mango_pdf.png ├── mango_redo.png ├── mango_save.png ├── mango_undo.png ├── maogo_html.png ├── mango_header.png ├── mango_new_42.png ├── mango_pdf_42.png ├── mango_table.png ├── readme_code.png ├── readme_math.png ├── mango_edit_42.png ├── mango_emphasis.png ├── mango_html_42.png ├── mango_open_42.png ├── mango_redo_42.png ├── mango_save_42.png ├── mango_undo_42.png ├── mango_blockquote.png ├── mango_preview_42.png ├── mango_linkandimage.png ├── readme_screenshot1.png ├── readme_screenshot2.png ├── readme_screenshot3.png └── readme_screenshot4.png ├── js ├── highlight │ ├── styles │ │ ├── pojoaque.jpg │ │ ├── school_book.png │ │ ├── brown_papersq.png │ │ ├── androidstudio.css │ │ ├── ascetic.css │ │ ├── mono-blue.css │ │ ├── codepen-embed.css │ │ ├── tomorrow.css │ │ ├── paraiso.dark.css │ │ ├── paraiso.light.css │ │ ├── vs.css │ │ ├── kimbie.dark.css │ │ ├── kimbie.light.css │ │ ├── tomorrow-night-bright.css │ │ ├── tomorrow-night-eighties.css │ │ ├── atelier-dune.dark.css │ │ ├── atelier-dune.light.css │ │ ├── tomorrow-night.css │ │ ├── atelier-heath.dark.css │ │ ├── atelier-heath.light.css │ │ ├── rainbow.css │ │ ├── tomorrow-night-blue.css │ │ ├── atelier-forest.dark.css │ │ ├── atelier-forest.light.css │ │ ├── ir_black.css │ │ ├── atelier-seaside.dark.css │ │ ├── atelier-seaside.light.css │ │ ├── atelier-lakeside.dark.css │ │ ├── atelier-lakeside.light.css │ │ ├── atelier-sulphurpool.dark.css │ │ ├── atelier-sulphurpool.light.css │ │ ├── solarized_dark.css │ │ ├── solarized_light.css │ │ ├── pojoaque.css │ │ ├── dark.css │ │ ├── brown_paper.css │ │ ├── github.css │ │ ├── foundation.css │ │ ├── far.css │ │ ├── idea.css │ │ ├── zenburn.css │ │ ├── magula.css │ │ ├── school_book.css │ │ ├── docco.css │ │ ├── agate.css │ │ ├── monokai.css │ │ ├── googlecode.css │ │ ├── arta.css │ │ ├── obsidian.css │ │ ├── xcode.css │ │ ├── sunburst.css │ │ ├── darkula.css │ │ ├── monokai_sublime.css │ │ ├── default.css │ │ ├── hybrid.css │ │ ├── railscasts.css │ │ └── color-brewer.css │ ├── LICENSE │ ├── README.ru.md │ └── README.md ├── main.js ├── taboverride │ ├── taboverride.min.js │ └── taboverride.min.js.map ├── sync.js └── editor.js ├── .gitignore ├── docs ├── Markdown-Syntax-Help.md ├── Mango-Shortcut-Help.md ├── Mango-Help.md └── Acknowlegements.md ├── package.json ├── css ├── base.css └── preview.css ├── README-zh.md ├── README.md └── index.html /img/Mango1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/Mango1.png -------------------------------------------------------------------------------- /img/Mango1_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/Mango1_128.png -------------------------------------------------------------------------------- /img/Mango1_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/Mango1_256.png -------------------------------------------------------------------------------- /img/Mango1_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/Mango1_48.png -------------------------------------------------------------------------------- /img/Mango1_72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/Mango1_72.png -------------------------------------------------------------------------------- /img/Mango1_96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/Mango1_96.png -------------------------------------------------------------------------------- /img/mango_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_code.png -------------------------------------------------------------------------------- /img/mango_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_list.png -------------------------------------------------------------------------------- /img/mango_math.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_math.png -------------------------------------------------------------------------------- /img/mango_new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_new.png -------------------------------------------------------------------------------- /img/mango_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_open.png -------------------------------------------------------------------------------- /img/mango_pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_pdf.png -------------------------------------------------------------------------------- /img/mango_redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_redo.png -------------------------------------------------------------------------------- /img/mango_save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_save.png -------------------------------------------------------------------------------- /img/mango_undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_undo.png -------------------------------------------------------------------------------- /img/maogo_html.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/maogo_html.png -------------------------------------------------------------------------------- /img/mango_header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_header.png -------------------------------------------------------------------------------- /img/mango_new_42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_new_42.png -------------------------------------------------------------------------------- /img/mango_pdf_42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_pdf_42.png -------------------------------------------------------------------------------- /img/mango_table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_table.png -------------------------------------------------------------------------------- /img/readme_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/readme_code.png -------------------------------------------------------------------------------- /img/readme_math.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/readme_math.png -------------------------------------------------------------------------------- /img/mango_edit_42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_edit_42.png -------------------------------------------------------------------------------- /img/mango_emphasis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_emphasis.png -------------------------------------------------------------------------------- /img/mango_html_42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_html_42.png -------------------------------------------------------------------------------- /img/mango_open_42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_open_42.png -------------------------------------------------------------------------------- /img/mango_redo_42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_redo_42.png -------------------------------------------------------------------------------- /img/mango_save_42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_save_42.png -------------------------------------------------------------------------------- /img/mango_undo_42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_undo_42.png -------------------------------------------------------------------------------- /img/mango_blockquote.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_blockquote.png -------------------------------------------------------------------------------- /img/mango_preview_42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_preview_42.png -------------------------------------------------------------------------------- /img/mango_linkandimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/mango_linkandimage.png -------------------------------------------------------------------------------- /img/readme_screenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/readme_screenshot1.png -------------------------------------------------------------------------------- /img/readme_screenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/readme_screenshot2.png -------------------------------------------------------------------------------- /img/readme_screenshot3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/readme_screenshot3.png -------------------------------------------------------------------------------- /img/readme_screenshot4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/img/readme_screenshot4.png -------------------------------------------------------------------------------- /js/highlight/styles/pojoaque.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/js/highlight/styles/pojoaque.jpg -------------------------------------------------------------------------------- /js/highlight/styles/school_book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/js/highlight/styles/school_book.png -------------------------------------------------------------------------------- /js/highlight/styles/brown_papersq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/egrcc/Mango/HEAD/js/highlight/styles/brown_papersq.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # node-waf configuration 20 | .lock-wscript 21 | 22 | # Compiled binary addons (http://nodejs.org/api/addons.html) 23 | build/Release 24 | 25 | # Dependency directory 26 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git 27 | node_modules 28 | -------------------------------------------------------------------------------- /docs/Markdown-Syntax-Help.md: -------------------------------------------------------------------------------- 1 | # Markdown Syntax Help 2 | 3 | ## Headers 4 | 5 | ![header](./img/mango_header.png) 6 | 7 | ## Links and Images 8 | 9 | ![linkandimage](./img/mango_linkandimage.png) 10 | 11 | ## Lists 12 | 13 | ![list](./img/mango_list.png) 14 | 15 | ## Tables 16 | 17 | ![table](./img/mango_table.png) 18 | 19 | ## Code and Syntax Highlighting 20 | 21 | ![code](./img/mango_code.png) 22 | 23 | ## Mathematics Expression 24 | 25 | ![math](./img/mango_math.png) 26 | 27 | ## Emphasis 28 | 29 | ![emphasis](./img/mango_emphasis.png) 30 | 31 | ## Blockquotes 32 | 33 | ![blockquote](./img/mango_blockquote.png) 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Mango", 3 | "version": "0.1.0", 4 | "description": "Markdown Editor", 5 | "main": "index.html", 6 | "author": "zhaolujun1994@gmail.com", 7 | "license": "GPL3", 8 | "single-instance": false, 9 | "window": { 10 | "toolbar": false, 11 | "show": true, 12 | "width": 1000, 13 | "height": 600, 14 | "min_width": 800, 15 | "min_height": 500, 16 | "icon": "./img/Mango1.png" 17 | }, 18 | "repository": { 19 | "type": "git", 20 | "url": "https://github.com/egrcc/Mango.git" 21 | }, 22 | "dependencies": { 23 | "marked": "^0.3.3", 24 | "bootbox": "~4.4.0", 25 | "request": "~2.74.0", 26 | "bootstrap": "3.3.0", 27 | "phantom-html2pdf": "~0.1.3", 28 | "nimble": "*", 29 | "evernote": "~1.25.4" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /js/highlight/styles/androidstudio.css: -------------------------------------------------------------------------------- 1 | /* 2 | Date: 24 Fev 2015 3 | Author: Pedro Oliveira 4 | */ 5 | 6 | .hljs 7 | { 8 | color: #A9B7C6; 9 | background: #282b2e; 10 | display: block; 11 | overflow-x: auto; 12 | padding: 0.5em; 13 | webkit-text-size-adjust: none; 14 | } 15 | .hljs-number 16 | { 17 | color: #6897BB; 18 | } 19 | 20 | .hljs-keyword, .hljs-deletion 21 | { 22 | color: #CC7832; 23 | } 24 | .hljs-javadoc 25 | { 26 | color: #629755; 27 | } 28 | .hljs-comment 29 | { 30 | color: #808080; 31 | } 32 | .hljs-annotation 33 | { 34 | color: #BBB529; 35 | } 36 | .hljs-string, .hljs-addition 37 | { 38 | color: #6A8759; 39 | } 40 | .hljs-function .hljs-title, .hljs-change 41 | { 42 | color: #FFC66D; 43 | } 44 | .hljs-tag .hljs-title, .hljs-doctype 45 | { 46 | color: #E8BF6A; 47 | } 48 | .hljs-tag .hljs-attribute 49 | { 50 | color: #BABABA; 51 | } 52 | .hljs-tag .hljs-value 53 | { 54 | color: #A5C261; 55 | } 56 | -------------------------------------------------------------------------------- /js/highlight/styles/ascetic.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Original style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: white; 12 | color: black; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-string, 17 | .hljs-tag .hljs-value, 18 | .hljs-filter .hljs-argument, 19 | .hljs-addition, 20 | .hljs-change, 21 | .hljs-name, 22 | .apache .hljs-tag, 23 | .apache .hljs-cbracket, 24 | .nginx .hljs-built_in, 25 | .tex .hljs-formula { 26 | color: #888; 27 | } 28 | 29 | .hljs-comment, 30 | .hljs-shebang, 31 | .hljs-doctype, 32 | .hljs-pi, 33 | .hljs-javadoc, 34 | .hljs-deletion, 35 | .apache .hljs-sqbracket { 36 | color: #ccc; 37 | } 38 | 39 | .hljs-keyword, 40 | .hljs-tag .hljs-title, 41 | .ini .hljs-title, 42 | .lisp .hljs-title, 43 | .http .hljs-title, 44 | .nginx .hljs-title, 45 | .css .hljs-tag, 46 | .hljs-winutils, 47 | .hljs-flow, 48 | .apache .hljs-tag, 49 | .tex .hljs-command, 50 | .hljs-request, 51 | .hljs-status { 52 | font-weight: bold; 53 | } 54 | -------------------------------------------------------------------------------- /js/highlight/styles/mono-blue.css: -------------------------------------------------------------------------------- 1 | /* 2 | Five-color theme from a single blue hue. 3 | */ 4 | .hljs { 5 | display: block; 6 | overflow-x: auto; 7 | padding: 0.5em; 8 | background: #eaeef3; 9 | -webkit-text-size-adjust: none; 10 | } 11 | 12 | .hljs, 13 | .hljs-list .hljs-built_in { 14 | color: #00193a; 15 | } 16 | 17 | .hljs-keyword, 18 | .hljs-title, 19 | .hljs-important, 20 | .hljs-request, 21 | .hljs-header, 22 | .hljs-javadoctag { 23 | font-weight: bold; 24 | } 25 | 26 | .hljs-comment, 27 | .hljs-chunk { 28 | color: #738191; 29 | } 30 | 31 | .hljs-string, 32 | .hljs-title, 33 | .hljs-parent, 34 | .hljs-built_in, 35 | .hljs-literal, 36 | .hljs-filename, 37 | .hljs-value, 38 | .hljs-addition, 39 | .hljs-tag, 40 | .hljs-argument, 41 | .hljs-link_label, 42 | .hljs-blockquote, 43 | .hljs-header, 44 | .hljs-name { 45 | color: #0048ab; 46 | } 47 | 48 | .hljs-decorator, 49 | .hljs-prompt, 50 | .hljs-yardoctag, 51 | .hljs-subst, 52 | .hljs-symbol, 53 | .hljs-doctype, 54 | .hljs-regexp, 55 | .hljs-preprocessor, 56 | .hljs-pragma, 57 | .hljs-pi, 58 | .hljs-attribute, 59 | .hljs-attr_selector, 60 | .hljs-javadoc, 61 | .hljs-xmlDocTag, 62 | .hljs-deletion, 63 | .hljs-shebang, 64 | .hljs-string .hljs-variable, 65 | .hljs-link_url, 66 | .hljs-bullet, 67 | .hljs-sqbracket, 68 | .hljs-phony { 69 | color: #4c81c9; 70 | } 71 | -------------------------------------------------------------------------------- /js/highlight/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006, Ivan Sagalaev 2 | All rights reserved. 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are met: 5 | 6 | * Redistributions of source code must retain the above copyright 7 | notice, this list of conditions and the following disclaimer. 8 | * Redistributions in binary form must reproduce the above copyright 9 | notice, this list of conditions and the following disclaimer in the 10 | documentation and/or other materials provided with the distribution. 11 | * Neither the name of highlight.js nor the names of its contributors 12 | may be used to endorse or promote products derived from this software 13 | without specific prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY 16 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY 19 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | -------------------------------------------------------------------------------- /docs/Mango-Shortcut-Help.md: -------------------------------------------------------------------------------- 1 | # Mango Shortcuts Help 2 | 3 | ### File 4 | 5 | Shortcut | Description 6 | ---------------------------------|------------------- 7 | COMMAND (CTRL) - N | Create a new file 8 | COMMAND (CTRL) - O | Open a file 9 | COMMAND (CTRL) - S | Save the current file 10 | COMMAND (CTRL) - SHIFT - S | Save As 11 | COMMAND (CTRL) - Q | Quit Mango 12 | 13 | 14 | ### Edit 15 | 16 | Shortcut | Description 17 | -----------------------------|--------------------- 18 | COMMAND (CTRL) - Z | Undo 19 | COMMAND (CTRL) - SHIFT - Z | Redo 20 | COMMAND (CTRL) - X | Cut 21 | COMMAND (CTRL) - C | Copy 22 | COMMAND (CTRL) - V | Paste 23 | COMMAND (CTRL) - A | Select All 24 | COMMAND (CTRL) - D | Delete 25 | 26 | 27 | ### Export 28 | 29 | Shortcut | Description 30 | ---------------------------------|------------------- 31 | COMMAND (CTRL) - E | Export to PDF 32 | COMMAND (CTRL) - SHIFT - E | Export to HTML 33 | 34 | 35 | ### Mode 36 | 37 | Shortcut | Description 38 | ----------------------------|----------------------- 39 | COMMAND (CTRL) - SHIFT - 1 | Editor : Viewer 40 | COMMAND (CTRL) - SHIFT - 2 | Viewer : Editor 41 | COMMAND (CTRL) - SHIFT - 3 | Editor 42 | COMMAND (CTRL) - SHIFT - 4 | Viewer 43 | COMMAND (CTRL) - H | Hide Toolbar 44 | COMMAND (CTRL) - SHIFT - H | Show Toolbar 45 | F11 | FullScreen 46 | F12 | Exit Fullscreen 47 | -------------------------------------------------------------------------------- /js/highlight/styles/codepen-embed.css: -------------------------------------------------------------------------------- 1 | /* 2 | codepen.io Embed Theme 3 | Author: Justin Perry 4 | Original theme - https://github.com/chriskempson/tomorrow-theme 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #222; 12 | color: #fff; 13 | font-family: Menlo, Monaco, 'Andale Mono', 'Lucida Console', 'Courier New', monospace; 14 | -webkit-text-size-adjust: none; 15 | } 16 | 17 | .hljs-comment, 18 | .hljs-title { 19 | color: #777; 20 | } 21 | 22 | .hljs-variable, 23 | .hljs-attribute, 24 | .hljs-tag, 25 | .hljs-regexp, 26 | .hljs-name, 27 | .ruby .constant, 28 | .xml .tag .title, 29 | .xml .pi, 30 | .xml .doctype, 31 | .html .doctype { 32 | color: #ab875d; 33 | } 34 | 35 | .css .value { 36 | color: #cd6a51; 37 | } 38 | 39 | .css .value .function, 40 | .css .value .string { 41 | color: #a67f59; 42 | } 43 | 44 | .css .value .number { 45 | color: #9b869c; 46 | } 47 | 48 | .css .id, 49 | .css .class, 50 | .css-pseudo, 51 | .css .selector, 52 | .css .tag { 53 | color: #dfc48c; 54 | } 55 | 56 | .hljs-number, 57 | .hljs-preprocessor, 58 | .hljs-built_in, 59 | .hljs-literal, 60 | .hljs-params, 61 | .hljs-constant { 62 | color: #ab875d; 63 | } 64 | 65 | .ruby .class .title, 66 | .css .rules .attribute { 67 | color: #9b869b; 68 | } 69 | 70 | .hljs-string, 71 | .hljs-value, 72 | .hljs-inheritance, 73 | .hljs-header, 74 | .ruby .symbol, 75 | .xml .cdata { 76 | color: #8f9c6c; 77 | } 78 | 79 | .css .hexcolor { 80 | color: #cd6a51; 81 | } 82 | 83 | .function, 84 | .python .decorator, 85 | .python .title, 86 | .ruby .function .title, 87 | .ruby .title .keyword, 88 | .perl .sub, 89 | .javascript .title, 90 | .coffeescript .title { 91 | color: #fff; 92 | } 93 | 94 | .hljs-keyword, 95 | .javascript .function { 96 | color: #8f9c6c; 97 | } 98 | -------------------------------------------------------------------------------- /js/highlight/styles/tomorrow.css: -------------------------------------------------------------------------------- 1 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 2 | 3 | /* Tomorrow Comment */ 4 | .hljs-comment { 5 | color: #8e908c; 6 | } 7 | 8 | /* Tomorrow Red */ 9 | .hljs-variable, 10 | .hljs-attribute, 11 | .hljs-tag, 12 | .hljs-regexp, 13 | .ruby .hljs-constant, 14 | .xml .hljs-tag .hljs-title, 15 | .xml .hljs-pi, 16 | .xml .hljs-doctype, 17 | .html .hljs-doctype, 18 | .css .hljs-id, 19 | .css .hljs-class, 20 | .css .hljs-pseudo { 21 | color: #c82829; 22 | } 23 | 24 | /* Tomorrow Orange */ 25 | .hljs-number, 26 | .hljs-preprocessor, 27 | .hljs-pragma, 28 | .hljs-built_in, 29 | .hljs-literal, 30 | .hljs-params, 31 | .hljs-constant { 32 | color: #f5871f; 33 | } 34 | 35 | /* Tomorrow Yellow */ 36 | .ruby .hljs-class .hljs-title, 37 | .css .hljs-rule .hljs-attribute { 38 | color: #eab700; 39 | } 40 | 41 | /* Tomorrow Green */ 42 | .hljs-string, 43 | .hljs-value, 44 | .hljs-inheritance, 45 | .hljs-header, 46 | .hljs-name, 47 | .ruby .hljs-symbol, 48 | .xml .hljs-cdata { 49 | color: #718c00; 50 | } 51 | 52 | /* Tomorrow Aqua */ 53 | .hljs-title, 54 | .css .hljs-hexcolor { 55 | color: #3e999f; 56 | } 57 | 58 | /* Tomorrow Blue */ 59 | .hljs-function, 60 | .python .hljs-decorator, 61 | .python .hljs-title, 62 | .ruby .hljs-function .hljs-title, 63 | .ruby .hljs-title .hljs-keyword, 64 | .perl .hljs-sub, 65 | .javascript .hljs-title, 66 | .coffeescript .hljs-title { 67 | color: #4271ae; 68 | } 69 | 70 | /* Tomorrow Purple */ 71 | .hljs-keyword, 72 | .javascript .hljs-function { 73 | color: #8959a8; 74 | } 75 | 76 | .hljs { 77 | display: block; 78 | overflow-x: auto; 79 | background: white; 80 | color: #4d4d4c; 81 | padding: 0.5em; 82 | -webkit-text-size-adjust: none; 83 | } 84 | 85 | .coffeescript .javascript, 86 | .javascript .xml, 87 | .tex .hljs-formula, 88 | .xml .javascript, 89 | .xml .vbscript, 90 | .xml .css, 91 | .xml .hljs-cdata { 92 | opacity: 0.5; 93 | } 94 | -------------------------------------------------------------------------------- /js/highlight/styles/paraiso.dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | Paraíso (dark) 3 | Created by Jan T. Sott (http://github.com/idleberg) 4 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br) 5 | */ 6 | 7 | /* Paraíso Comment */ 8 | .hljs-comment, 9 | .hljs-title { 10 | color: #8d8687; 11 | } 12 | 13 | /* Paraíso Red */ 14 | .hljs-variable, 15 | .hljs-attribute, 16 | .hljs-tag, 17 | .hljs-regexp, 18 | .hljs-name, 19 | .ruby .hljs-constant, 20 | .xml .hljs-tag .hljs-title, 21 | .xml .hljs-pi, 22 | .xml .hljs-doctype, 23 | .html .hljs-doctype, 24 | .css .hljs-id, 25 | .css .hljs-class, 26 | .css .hljs-pseudo { 27 | color: #ef6155; 28 | } 29 | 30 | /* Paraíso Orange */ 31 | .hljs-number, 32 | .hljs-preprocessor, 33 | .hljs-built_in, 34 | .hljs-literal, 35 | .hljs-params, 36 | .hljs-constant { 37 | color: #f99b15; 38 | } 39 | 40 | /* Paraíso Yellow */ 41 | .ruby .hljs-class .hljs-title, 42 | .css .hljs-rule .hljs-attribute { 43 | color: #fec418; 44 | } 45 | 46 | /* Paraíso Green */ 47 | .hljs-string, 48 | .hljs-value, 49 | .hljs-inheritance, 50 | .hljs-header, 51 | .ruby .hljs-symbol, 52 | .xml .hljs-cdata { 53 | color: #48b685; 54 | } 55 | 56 | /* Paraíso Aqua */ 57 | .css .hljs-hexcolor { 58 | color: #5bc4bf; 59 | } 60 | 61 | /* Paraíso Blue */ 62 | .hljs-function, 63 | .python .hljs-decorator, 64 | .python .hljs-title, 65 | .ruby .hljs-function .hljs-title, 66 | .ruby .hljs-title .hljs-keyword, 67 | .perl .hljs-sub, 68 | .javascript .hljs-title, 69 | .coffeescript .hljs-title { 70 | color: #06b6ef; 71 | } 72 | 73 | /* Paraíso Purple */ 74 | .hljs-keyword, 75 | .javascript .hljs-function { 76 | color: #815ba4; 77 | } 78 | 79 | .hljs { 80 | display: block; 81 | overflow-x: auto; 82 | background: #2f1e2e; 83 | color: #a39e9b; 84 | padding: 0.5em; 85 | -webkit-text-size-adjust: none; 86 | } 87 | 88 | .coffeescript .javascript, 89 | .javascript .xml, 90 | .tex .hljs-formula, 91 | .xml .javascript, 92 | .xml .vbscript, 93 | .xml .css, 94 | .xml .hljs-cdata { 95 | opacity: 0.5; 96 | } 97 | -------------------------------------------------------------------------------- /js/highlight/styles/paraiso.light.css: -------------------------------------------------------------------------------- 1 | /* 2 | Paraíso (light) 3 | Created by Jan T. Sott (http://github.com/idleberg) 4 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br) 5 | */ 6 | 7 | /* Paraíso Comment */ 8 | .hljs-comment, 9 | .hljs-title { 10 | color: #776e71; 11 | } 12 | 13 | /* Paraíso Red */ 14 | .hljs-variable, 15 | .hljs-attribute, 16 | .hljs-tag, 17 | .hljs-regexp, 18 | .hljs-name, 19 | .ruby .hljs-constant, 20 | .xml .hljs-tag .hljs-title, 21 | .xml .hljs-pi, 22 | .xml .hljs-doctype, 23 | .html .hljs-doctype, 24 | .css .hljs-id, 25 | .css .hljs-class, 26 | .css .hljs-pseudo { 27 | color: #ef6155; 28 | } 29 | 30 | /* Paraíso Orange */ 31 | .hljs-number, 32 | .hljs-preprocessor, 33 | .hljs-built_in, 34 | .hljs-literal, 35 | .hljs-params, 36 | .hljs-constant { 37 | color: #f99b15; 38 | } 39 | 40 | /* Paraíso Yellow */ 41 | .ruby .hljs-class .hljs-title, 42 | .css .hljs-rule .hljs-attribute { 43 | color: #fec418; 44 | } 45 | 46 | /* Paraíso Green */ 47 | .hljs-string, 48 | .hljs-value, 49 | .hljs-inheritance, 50 | .hljs-header, 51 | .ruby .hljs-symbol, 52 | .xml .hljs-cdata { 53 | color: #48b685; 54 | } 55 | 56 | /* Paraíso Aqua */ 57 | .css .hljs-hexcolor { 58 | color: #5bc4bf; 59 | } 60 | 61 | /* Paraíso Blue */ 62 | .hljs-function, 63 | .python .hljs-decorator, 64 | .python .hljs-title, 65 | .ruby .hljs-function .hljs-title, 66 | .ruby .hljs-title .hljs-keyword, 67 | .perl .hljs-sub, 68 | .javascript .hljs-title, 69 | .coffeescript .hljs-title { 70 | color: #06b6ef; 71 | } 72 | 73 | /* Paraíso Purple */ 74 | .hljs-keyword, 75 | .javascript .hljs-function { 76 | color: #815ba4; 77 | } 78 | 79 | .hljs { 80 | display: block; 81 | overflow-x: auto; 82 | background: #e7e9db; 83 | color: #4f424c; 84 | padding: 0.5em; 85 | -webkit-text-size-adjust: none; 86 | } 87 | 88 | .coffeescript .javascript, 89 | .javascript .xml, 90 | .tex .hljs-formula, 91 | .xml .javascript, 92 | .xml .vbscript, 93 | .xml .css, 94 | .xml .hljs-cdata { 95 | opacity: 0.5; 96 | } 97 | -------------------------------------------------------------------------------- /js/highlight/styles/vs.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Visual Studio-like style based on original C# coloring by Jason Diamond 4 | 5 | */ 6 | .hljs { 7 | display: block; 8 | overflow-x: auto; 9 | padding: 0.5em; 10 | background: white; 11 | color: black; 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs-comment, 16 | .hljs-annotation, 17 | .diff .hljs-header, 18 | .hljs-chunk, 19 | .apache .hljs-cbracket { 20 | color: #008000; 21 | } 22 | 23 | .hljs-keyword, 24 | .hljs-id, 25 | .hljs-built_in,.css 26 | .smalltalk .hljs-class, 27 | .hljs-winutils, 28 | .bash .hljs-variable, 29 | .tex .hljs-command, 30 | .hljs-request, 31 | .hljs-status, 32 | .nginx .hljs-title, 33 | .xml .hljs-tag, 34 | .xml .hljs-tag .hljs-value { 35 | color: #00f; 36 | } 37 | 38 | .hljs-string, 39 | .hljs-title, 40 | .hljs-parent, 41 | .hljs-tag .hljs-value, 42 | .hljs-rule .hljs-value, 43 | .ruby .hljs-symbol, 44 | .ruby .hljs-symbol .hljs-string, 45 | .hljs-template_tag, 46 | .django .hljs-variable, 47 | .hljs-addition, 48 | .hljs-flow, 49 | .hljs-stream, 50 | .apache .hljs-tag, 51 | .hljs-date, 52 | .tex .hljs-formula, 53 | .coffeescript .hljs-attribute, 54 | .hljs-name { 55 | color: #a31515; 56 | } 57 | 58 | .ruby .hljs-string, 59 | .hljs-decorator, 60 | .hljs-filter .hljs-argument, 61 | .hljs-localvars, 62 | .hljs-array, 63 | .hljs-attr_selector, 64 | .hljs-pseudo, 65 | .hljs-pi, 66 | .hljs-doctype, 67 | .hljs-deletion, 68 | .hljs-envvar, 69 | .hljs-shebang, 70 | .hljs-preprocessor, 71 | .hljs-pragma, 72 | .userType, 73 | .apache .hljs-sqbracket, 74 | .nginx .hljs-built_in, 75 | .tex .hljs-special, 76 | .hljs-prompt { 77 | color: #2b91af; 78 | } 79 | 80 | .hljs-phpdoc, 81 | .hljs-dartdoc, 82 | .hljs-javadoc, 83 | .hljs-xmlDocTag { 84 | color: #808080; 85 | } 86 | 87 | .hljs-type, 88 | .hljs-typename { font-weight: bold; } 89 | 90 | .vhdl .hljs-string { color: #666666; } 91 | .vhdl .hljs-literal { color: #a31515; } 92 | .vhdl .hljs-attribute { color: #00b0e8; } 93 | 94 | .xml .hljs-attribute { color: #f00; } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/kimbie.dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | Name: Kimbie (dark) 3 | Author: Jan T. Sott 4 | License: Creative Commons Attribution-ShareAlike 4.0 Unported License 5 | URL: https://github.com/idleberg/Kimbie-highlight.js 6 | */ 7 | 8 | /* Kimbie Comment */ 9 | .hljs-comment, 10 | .hljs-title { 11 | color: #d6baad; 12 | } 13 | 14 | /* Kimbie Red */ 15 | .hljs-variable, 16 | .hljs-attribute, 17 | .hljs-tag, 18 | .hljs-regexp, 19 | .hljs-name, 20 | .ruby .hljs-constant, 21 | .xml .hljs-tag .hljs-title, 22 | .xml .hljs-pi, 23 | .xml .hljs-doctype, 24 | .html .hljs-doctype, 25 | .css .hljs-id, 26 | .css .hljs-class, 27 | .css .hljs-pseudo { 28 | color: #dc3958; 29 | } 30 | 31 | /* Kimbie Orange */ 32 | .hljs-number, 33 | .hljs-preprocessor, 34 | .hljs-built_in, 35 | .hljs-literal, 36 | .hljs-params, 37 | .hljs-constant { 38 | color: #f79a32; 39 | } 40 | 41 | /* Kimbie Yellow */ 42 | .ruby .hljs-class .hljs-title, 43 | .css .hljs-rule .hljs-attribute { 44 | color: #f06431; 45 | } 46 | 47 | /* Kimbie Green */ 48 | .hljs-string, 49 | .hljs-value, 50 | .hljs-inheritance, 51 | .hljs-header, 52 | .ruby .hljs-symbol, 53 | .xml .hljs-cdata { 54 | color: #889b4a; 55 | } 56 | 57 | /* Kimbie Aqua */ 58 | .css .hljs-hexcolor { 59 | color: #088649; 60 | } 61 | 62 | /* Kimbie Blue */ 63 | .hljs-function, 64 | .python .hljs-decorator, 65 | .python .hljs-title, 66 | .ruby .hljs-function .hljs-title, 67 | .ruby .hljs-title .hljs-keyword, 68 | .perl .hljs-sub, 69 | .javascript .hljs-title, 70 | .coffeescript .hljs-title { 71 | color: #8ab1b0; 72 | } 73 | 74 | /* Kimbie Purple */ 75 | .hljs-keyword, 76 | .javascript .hljs-function { 77 | color: #98676a; 78 | } 79 | 80 | .hljs { 81 | display: block; 82 | overflow-x: auto; 83 | background: #221a0f; 84 | color: #d3af86; 85 | padding: 0.5em; 86 | -webkit-text-size-adjust: none; 87 | } 88 | 89 | .coffeescript .javascript, 90 | .javascript .xml, 91 | .tex .hljs-formula, 92 | .xml .javascript, 93 | .xml .vbscript, 94 | .xml .css, 95 | .xml .hljs-cdata { 96 | opacity: 0.5; 97 | } 98 | -------------------------------------------------------------------------------- /js/highlight/styles/kimbie.light.css: -------------------------------------------------------------------------------- 1 | /* 2 | Name: Kimbie (light) 3 | Author: Jan T. Sott 4 | License: Creative Commons Attribution-ShareAlike 4.0 Unported License 5 | URL: https://github.com/idleberg/Kimbie-highlight.js 6 | */ 7 | 8 | /* Kimbie Comment */ 9 | .hljs-comment, 10 | .hljs-title { 11 | color: #a57a4c; 12 | } 13 | 14 | /* Kimbie Red */ 15 | .hljs-variable, 16 | .hljs-attribute, 17 | .hljs-tag, 18 | .hljs-regexp, 19 | .hljs-name, 20 | .ruby .hljs-constant, 21 | .xml .hljs-tag .hljs-title, 22 | .xml .hljs-pi, 23 | .xml .hljs-doctype, 24 | .html .hljs-doctype, 25 | .css .hljs-id, 26 | .css .hljs-class, 27 | .css .hljs-pseudo { 28 | color: #dc3958; 29 | } 30 | 31 | /* Kimbie Orange */ 32 | .hljs-number, 33 | .hljs-preprocessor, 34 | .hljs-built_in, 35 | .hljs-literal, 36 | .hljs-params, 37 | .hljs-constant { 38 | color: #f79a32; 39 | } 40 | 41 | /* Kimbie Yellow */ 42 | .ruby .hljs-class .hljs-title, 43 | .css .hljs-rule .hljs-attribute { 44 | color: #f06431; 45 | } 46 | 47 | /* Kimbie Green */ 48 | .hljs-string, 49 | .hljs-value, 50 | .hljs-inheritance, 51 | .hljs-header, 52 | .ruby .hljs-symbol, 53 | .xml .hljs-cdata { 54 | color: #889b4a; 55 | } 56 | 57 | /* Kimbie Aqua */ 58 | .css .hljs-hexcolor { 59 | color: #088649; 60 | } 61 | 62 | /* Kimbie Blue */ 63 | .hljs-function, 64 | .python .hljs-decorator, 65 | .python .hljs-title, 66 | .ruby .hljs-function .hljs-title, 67 | .ruby .hljs-title .hljs-keyword, 68 | .perl .hljs-sub, 69 | .javascript .hljs-title, 70 | .coffeescript .hljs-title { 71 | color: #8ab1b0; 72 | } 73 | 74 | /* Kimbie Purple */ 75 | .hljs-keyword, 76 | .javascript .hljs-function { 77 | color: #98676a; 78 | } 79 | 80 | .hljs { 81 | display: block; 82 | overflow-x: auto; 83 | background: #fbebd4; 84 | color: #84613d; 85 | padding: 0.5em; 86 | -webkit-text-size-adjust: none; 87 | } 88 | 89 | .coffeescript .javascript, 90 | .javascript .xml, 91 | .tex .hljs-formula, 92 | .xml .javascript, 93 | .xml .vbscript, 94 | .xml .css, 95 | .xml .hljs-cdata { 96 | opacity: 0.5; 97 | } 98 | -------------------------------------------------------------------------------- /js/highlight/styles/tomorrow-night-bright.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Bright Theme */ 2 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 3 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 4 | 5 | /* Tomorrow Comment */ 6 | .hljs-comment { 7 | color: #969896; 8 | } 9 | 10 | /* Tomorrow Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .ruby .hljs-constant, 16 | .xml .hljs-tag .hljs-title, 17 | .xml .hljs-pi, 18 | .xml .hljs-doctype, 19 | .html .hljs-doctype, 20 | .css .hljs-id, 21 | .css .hljs-class, 22 | .css .hljs-pseudo { 23 | color: #d54e53; 24 | } 25 | 26 | /* Tomorrow Orange */ 27 | .hljs-number, 28 | .hljs-preprocessor, 29 | .hljs-pragma, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #e78c45; 35 | } 36 | 37 | /* Tomorrow Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #e7c547; 41 | } 42 | 43 | /* Tomorrow Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .hljs-name, 49 | .ruby .hljs-symbol, 50 | .xml .hljs-cdata { 51 | color: #b9ca4a; 52 | } 53 | 54 | /* Tomorrow Aqua */ 55 | .hljs-title, 56 | .css .hljs-hexcolor { 57 | color: #70c0b1; 58 | } 59 | 60 | /* Tomorrow Blue */ 61 | .hljs-function, 62 | .python .hljs-decorator, 63 | .python .hljs-title, 64 | .ruby .hljs-function .hljs-title, 65 | .ruby .hljs-title .hljs-keyword, 66 | .perl .hljs-sub, 67 | .javascript .hljs-title, 68 | .coffeescript .hljs-title { 69 | color: #7aa6da; 70 | } 71 | 72 | /* Tomorrow Purple */ 73 | .hljs-keyword, 74 | .javascript .hljs-function { 75 | color: #c397d8; 76 | } 77 | 78 | .hljs { 79 | display: block; 80 | overflow-x: auto; 81 | background: black; 82 | color: #eaeaea; 83 | padding: 0.5em; 84 | -webkit-text-size-adjust: none; 85 | } 86 | 87 | .coffeescript .javascript, 88 | .javascript .xml, 89 | .tex .hljs-formula, 90 | .xml .javascript, 91 | .xml .vbscript, 92 | .xml .css, 93 | .xml .hljs-cdata { 94 | opacity: 0.5; 95 | } 96 | -------------------------------------------------------------------------------- /js/highlight/styles/tomorrow-night-eighties.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Eighties Theme */ 2 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 3 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 4 | 5 | /* Tomorrow Comment */ 6 | .hljs-comment { 7 | color: #999999; 8 | } 9 | 10 | /* Tomorrow Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .ruby .hljs-constant, 16 | .xml .hljs-tag .hljs-title, 17 | .xml .hljs-pi, 18 | .xml .hljs-doctype, 19 | .html .hljs-doctype, 20 | .css .hljs-id, 21 | .css .hljs-class, 22 | .css .hljs-pseudo { 23 | color: #f2777a; 24 | } 25 | 26 | /* Tomorrow Orange */ 27 | .hljs-number, 28 | .hljs-preprocessor, 29 | .hljs-pragma, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #f99157; 35 | } 36 | 37 | /* Tomorrow Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #ffcc66; 41 | } 42 | 43 | /* Tomorrow Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .hljs-name, 49 | .ruby .hljs-symbol, 50 | .xml .hljs-cdata { 51 | color: #99cc99; 52 | } 53 | 54 | /* Tomorrow Aqua */ 55 | .hljs-title, 56 | .css .hljs-hexcolor { 57 | color: #66cccc; 58 | } 59 | 60 | /* Tomorrow Blue */ 61 | .hljs-function, 62 | .python .hljs-decorator, 63 | .python .hljs-title, 64 | .ruby .hljs-function .hljs-title, 65 | .ruby .hljs-title .hljs-keyword, 66 | .perl .hljs-sub, 67 | .javascript .hljs-title, 68 | .coffeescript .hljs-title { 69 | color: #6699cc; 70 | } 71 | 72 | /* Tomorrow Purple */ 73 | .hljs-keyword, 74 | .javascript .hljs-function { 75 | color: #cc99cc; 76 | } 77 | 78 | .hljs { 79 | display: block; 80 | overflow-x: auto; 81 | background: #2d2d2d; 82 | color: #cccccc; 83 | padding: 0.5em; 84 | -webkit-text-size-adjust: none; 85 | } 86 | 87 | .coffeescript .javascript, 88 | .javascript .xml, 89 | .tex .hljs-formula, 90 | .xml .javascript, 91 | .xml .vbscript, 92 | .xml .css, 93 | .xml .hljs-cdata { 94 | opacity: 0.5; 95 | } 96 | -------------------------------------------------------------------------------- /js/highlight/styles/atelier-dune.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Dune Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Dune Comment */ 6 | .hljs-comment { 7 | color: #999580; 8 | } 9 | 10 | /* Atelier-Dune Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #d73737; 25 | } 26 | 27 | /* Atelier-Dune Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #b65611; 35 | } 36 | 37 | /* Atelier-Dune Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #ae9513; 41 | } 42 | 43 | /* Atelier-Dune Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #60ac39; 51 | } 52 | 53 | /* Atelier-Dune Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #1fad83; 57 | } 58 | 59 | /* Atelier-Dune Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #6684e1; 69 | } 70 | 71 | /* Atelier-Dune Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #b854d4; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #20201d; 81 | color: #a6a28c; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/atelier-dune.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Dune Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Dune Comment */ 6 | .hljs-comment { 7 | color: #7d7a68; 8 | } 9 | 10 | /* Atelier-Dune Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #d73737; 25 | } 26 | 27 | /* Atelier-Dune Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #b65611; 35 | } 36 | 37 | /* Atelier-Dune Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #ae9513; 41 | } 42 | 43 | /* Atelier-Dune Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #60ac39; 51 | } 52 | 53 | /* Atelier-Dune Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #1fad83; 57 | } 58 | 59 | /* Atelier-Dune Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #6684e1; 69 | } 70 | 71 | /* Atelier-Dune Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #b854d4; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #fefbec; 81 | color: #6e6b5e; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/tomorrow-night.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Theme */ 2 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 3 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 4 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 5 | 6 | /* Tomorrow Comment */ 7 | .hljs-comment { 8 | color: #969896; 9 | } 10 | 11 | /* Tomorrow Red */ 12 | .hljs-variable, 13 | .hljs-attribute, 14 | .hljs-tag, 15 | .hljs-regexp, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #cc6666; 25 | } 26 | 27 | /* Tomorrow Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-pragma, 31 | .hljs-built_in, 32 | .hljs-literal, 33 | .hljs-params, 34 | .hljs-constant { 35 | color: #de935f; 36 | } 37 | 38 | /* Tomorrow Yellow */ 39 | .ruby .hljs-class .hljs-title, 40 | .css .hljs-rule .hljs-attribute { 41 | color: #f0c674; 42 | } 43 | 44 | /* Tomorrow Green */ 45 | .hljs-string, 46 | .hljs-value, 47 | .hljs-inheritance, 48 | .hljs-header, 49 | .hljs-name, 50 | .ruby .hljs-symbol, 51 | .xml .hljs-cdata { 52 | color: #b5bd68; 53 | } 54 | 55 | /* Tomorrow Aqua */ 56 | .hljs-title, 57 | .css .hljs-hexcolor { 58 | color: #8abeb7; 59 | } 60 | 61 | /* Tomorrow Blue */ 62 | .hljs-function, 63 | .python .hljs-decorator, 64 | .python .hljs-title, 65 | .ruby .hljs-function .hljs-title, 66 | .ruby .hljs-title .hljs-keyword, 67 | .perl .hljs-sub, 68 | .javascript .hljs-title, 69 | .coffeescript .hljs-title { 70 | color: #81a2be; 71 | } 72 | 73 | /* Tomorrow Purple */ 74 | .hljs-keyword, 75 | .javascript .hljs-function { 76 | color: #b294bb; 77 | } 78 | 79 | .hljs { 80 | display: block; 81 | overflow-x: auto; 82 | background: #1d1f21; 83 | color: #c5c8c6; 84 | padding: 0.5em; 85 | -webkit-text-size-adjust: none; 86 | } 87 | 88 | .coffeescript .javascript, 89 | .javascript .xml, 90 | .tex .hljs-formula, 91 | .xml .javascript, 92 | .xml .vbscript, 93 | .xml .css, 94 | .xml .hljs-cdata { 95 | opacity: 0.5; 96 | } 97 | -------------------------------------------------------------------------------- /js/highlight/styles/atelier-heath.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Heath Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Heath Comment */ 6 | .hljs-comment { 7 | color: #9e8f9e; 8 | } 9 | 10 | /* Atelier-Heath Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #ca402b; 25 | } 26 | 27 | /* Atelier-Heath Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #a65926; 35 | } 36 | 37 | /* Atelier-Heath Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #bb8a35; 41 | } 42 | 43 | /* Atelier-Heath Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #918b3b; 51 | } 52 | 53 | /* Atelier-Heath Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #159393; 57 | } 58 | 59 | /* Atelier-Heath Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #516aec; 69 | } 70 | 71 | /* Atelier-Heath Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #7b59c0; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #1b181b; 81 | color: #ab9bab; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/atelier-heath.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Heath Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Heath Comment */ 6 | .hljs-comment { 7 | color: #776977; 8 | } 9 | 10 | /* Atelier-Heath Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #ca402b; 25 | } 26 | 27 | /* Atelier-Heath Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #a65926; 35 | } 36 | 37 | /* Atelier-Heath Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #bb8a35; 41 | } 42 | 43 | /* Atelier-Heath Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #918b3b; 51 | } 52 | 53 | /* Atelier-Heath Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #159393; 57 | } 58 | 59 | /* Atelier-Heath Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #516aec; 69 | } 70 | 71 | /* Atelier-Heath Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #7b59c0; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #f7f3f7; 81 | color: #695d69; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/rainbow.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Style with support for rainbow parens 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #474949; 12 | color: #d1d9e1; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | 17 | .hljs-body, 18 | .hljs-collection { 19 | color: #d1d9e1; 20 | } 21 | 22 | .hljs-comment, 23 | .diff .hljs-header, 24 | .hljs-doctype, 25 | .lisp .hljs-string, 26 | .hljs-javadoc { 27 | color: #969896; 28 | font-style: italic; 29 | } 30 | 31 | .hljs-keyword, 32 | .clojure .hljs-attribute, 33 | .hljs-winutils, 34 | .javascript .hljs-title, 35 | .hljs-addition, 36 | .css .hljs-tag { 37 | color: #cc99cc; 38 | } 39 | 40 | .hljs-number { color: #f99157; } 41 | 42 | .hljs-command, 43 | .hljs-string, 44 | .hljs-tag .hljs-value, 45 | .hljs-phpdoc, 46 | .hljs-dartdoc, 47 | .tex .hljs-formula, 48 | .hljs-regexp, 49 | .hljs-hexcolor { 50 | color: #8abeb7; 51 | } 52 | 53 | .hljs-title, 54 | .hljs-localvars, 55 | .hljs-function .hljs-title, 56 | .hljs-chunk, 57 | .hljs-decorator, 58 | .hljs-built_in, 59 | .hljs-identifier { 60 | color: #b5bd68; 61 | } 62 | 63 | .hljs-class .hljs-keyword { 64 | color: #f2777a; 65 | } 66 | 67 | .hljs-variable, 68 | .smalltalk .hljs-number, 69 | .hljs-constant, 70 | .hljs-class .hljs-title, 71 | .hljs-parent, 72 | .haskell .hljs-label, 73 | .hljs-id, 74 | .hljs-name { 75 | color: #ffcc66; 76 | } 77 | 78 | .hljs-tag .hljs-title, 79 | .hljs-rule .hljs-property, 80 | .django .hljs-tag .hljs-keyword { 81 | font-weight: bold; 82 | } 83 | 84 | .hljs-attribute { 85 | color: #81a2be; 86 | } 87 | 88 | .hljs-preprocessor, 89 | .hljs-pragma, 90 | .hljs-pi, 91 | .hljs-shebang, 92 | .hljs-symbol, 93 | .hljs-symbol .hljs-string, 94 | .diff .hljs-change, 95 | .hljs-special, 96 | .hljs-attr_selector, 97 | .hljs-important, 98 | .hljs-subst, 99 | .hljs-cdata { 100 | color: #f99157; 101 | } 102 | 103 | .hljs-deletion { 104 | color: #dc322f; 105 | } 106 | 107 | .tex .hljs-formula { 108 | background: #eee8d5; 109 | } 110 | -------------------------------------------------------------------------------- /js/highlight/styles/tomorrow-night-blue.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Blue Theme */ 2 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 3 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 4 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 5 | 6 | /* Tomorrow Comment */ 7 | .hljs-comment { 8 | color: #7285b7; 9 | } 10 | 11 | /* Tomorrow Red */ 12 | .hljs-variable, 13 | .hljs-attribute, 14 | .hljs-tag, 15 | .hljs-regexp, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #ff9da4; 25 | } 26 | 27 | /* Tomorrow Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-pragma, 31 | .hljs-built_in, 32 | .hljs-literal, 33 | .hljs-params, 34 | .hljs-constant { 35 | color: #ffc58f; 36 | } 37 | 38 | /* Tomorrow Yellow */ 39 | .ruby .hljs-class .hljs-title, 40 | .css .hljs-rule .hljs-attribute { 41 | color: #ffeead; 42 | } 43 | 44 | /* Tomorrow Green */ 45 | .hljs-string, 46 | .hljs-value, 47 | .hljs-inheritance, 48 | .hljs-header, 49 | .hljs-name, 50 | .ruby .hljs-symbol, 51 | .xml .hljs-cdata { 52 | color: #d1f1a9; 53 | } 54 | 55 | /* Tomorrow Aqua */ 56 | .hljs-title, 57 | .css .hljs-hexcolor { 58 | color: #99ffff; 59 | } 60 | 61 | /* Tomorrow Blue */ 62 | .hljs-function, 63 | .python .hljs-decorator, 64 | .python .hljs-title, 65 | .ruby .hljs-function .hljs-title, 66 | .ruby .hljs-title .hljs-keyword, 67 | .perl .hljs-sub, 68 | .javascript .hljs-title, 69 | .coffeescript .hljs-title { 70 | color: #bbdaff; 71 | } 72 | 73 | /* Tomorrow Purple */ 74 | .hljs-keyword, 75 | .javascript .hljs-function { 76 | color: #ebbbff; 77 | } 78 | 79 | .hljs { 80 | display: block; 81 | overflow-x: auto; 82 | background: #002451; 83 | color: white; 84 | padding: 0.5em; 85 | -webkit-text-size-adjust: none; 86 | } 87 | 88 | .coffeescript .javascript, 89 | .javascript .xml, 90 | .tex .hljs-formula, 91 | .xml .javascript, 92 | .xml .vbscript, 93 | .xml .css, 94 | .xml .hljs-cdata { 95 | opacity: 0.5; 96 | } 97 | -------------------------------------------------------------------------------- /css/base.css: -------------------------------------------------------------------------------- 1 | html, body{ 2 | height:98%; 3 | } 4 | body{ 5 | font-family:Arial; 6 | } 7 | a{ 8 | text-decoration:none !important; 9 | } 10 | 11 | .background{ 12 | width:100%; 13 | /*height:auto;*/ 14 | position: absolute; 15 | top: 42px; 16 | bottom: 5px; 17 | background-color: #ffffff; 18 | } 19 | 20 | .toolbar{ 21 | width:100%; 22 | height:42px; 23 | background-color: #fff; 24 | } 25 | 26 | .image-background1{ 27 | width: 42px; 28 | height: 42px; 29 | /*margin-left: 5px; */ 30 | float: left; 31 | } 32 | 33 | .image-background1:hover{ 34 | background-color: #e0e0e0; 35 | } 36 | 37 | /*.image-background2{ 38 | width: 42px; 39 | height: 42px; 40 | margin-left: 10px; 41 | float: left; 42 | } 43 | 44 | .image-background2:hover{ 45 | background-color: #e0e0e0; 46 | }*/ 47 | 48 | .image-background3{ 49 | width: 42px; 50 | height: 42px; 51 | margin-right: 10px; 52 | float: right; 53 | } 54 | 55 | .image-background3:hover{ 56 | background-color: #e0e0e0; 57 | 58 | } 59 | 60 | .md_editor{ 61 | float:left; 62 | width:49.7%; 63 | height:100%; 64 | resize:none; 65 | padding: 10px; 66 | border:0px; 67 | letter-spacing: 1.5px; 68 | line-height: 120%; 69 | color: #ffffff; 70 | font-family: Courier New; 71 | font-size: 16px; 72 | background-color: #272822; 73 | margin-left:5px; 74 | overflow-y:scroll; 75 | overflow-x:hidden; 76 | } 77 | 78 | 79 | .md_result{ 80 | font-size:105%; 81 | float:right; 82 | width:49.4%; 83 | color: #2c3f51; 84 | box-sizing:border-box; 85 | background-color: #ffffff; 86 | padding:10px 10px 13px 10px; 87 | /*margin:0;*/ 88 | height:100%; 89 | overflow-y:scroll; 90 | } 91 | 92 | textarea:focus, input:focus{ 93 | outline: 0; 94 | } 95 | 96 | 97 | ::-webkit-scrollbar { 98 | width: 12px; 99 | } 100 | 101 | ::-webkit-scrollbar-track { 102 | -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 103 | border-radius: 10px; 104 | } 105 | 106 | ::-webkit-scrollbar-thumb { 107 | border-radius: 10px; 108 | -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.7); 109 | } -------------------------------------------------------------------------------- /js/highlight/styles/atelier-forest.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Forest Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Forest Comment */ 6 | .hljs-comment { 7 | color: #9c9491; 8 | } 9 | 10 | /* Atelier-Forest Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #f22c40; 25 | } 26 | 27 | /* Atelier-Forest Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #df5320; 35 | } 36 | 37 | /* Atelier-Forest Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #c38418; 41 | } 42 | 43 | /* Atelier-Forest Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #7b9726; 51 | } 52 | 53 | /* Atelier-Forest Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #3d97b8; 57 | } 58 | 59 | /* Atelier-Forest Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #407ee7; 69 | } 70 | 71 | /* Atelier-Forest Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6666ea; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #1b1918; 81 | color: #a8a19f; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/atelier-forest.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Forest Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Forest Comment */ 6 | .hljs-comment { 7 | color: #766e6b; 8 | } 9 | 10 | /* Atelier-Forest Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #f22c40; 25 | } 26 | 27 | /* Atelier-Forest Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #df5320; 35 | } 36 | 37 | /* Atelier-Forest Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #c38418; 41 | } 42 | 43 | /* Atelier-Forest Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #7b9726; 51 | } 52 | 53 | /* Atelier-Forest Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #3d97b8; 57 | } 58 | 59 | /* Atelier-Forest Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #407ee7; 69 | } 70 | 71 | /* Atelier-Forest Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6666ea; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #f1efee; 81 | color: #68615e; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/ir_black.css: -------------------------------------------------------------------------------- 1 | /* 2 | IR_Black style (c) Vasily Mikhailitchenko 3 | */ 4 | 5 | .hljs { 6 | display: block; 7 | overflow-x: auto; 8 | padding: 0.5em; 9 | background: #000; 10 | color: #f8f8f8; 11 | -webkit-text-size-adjust: none; 12 | } 13 | 14 | .hljs-shebang, 15 | .hljs-comment, 16 | .hljs-javadoc { 17 | color: #7c7c7c; 18 | } 19 | 20 | .hljs-keyword, 21 | .hljs-tag, 22 | .tex .hljs-command, 23 | .hljs-request, 24 | .hljs-status, 25 | .clojure .hljs-attribute { 26 | color: #96cbfe; 27 | } 28 | 29 | .hljs-sub .hljs-keyword, 30 | .method, 31 | .hljs-list .hljs-title, 32 | .nginx .hljs-title { 33 | color: #ffffb6; 34 | } 35 | 36 | .hljs-string, 37 | .hljs-tag .hljs-value, 38 | .hljs-cdata, 39 | .hljs-filter .hljs-argument, 40 | .hljs-attr_selector, 41 | .apache .hljs-cbracket, 42 | .hljs-date, 43 | .coffeescript .hljs-attribute { 44 | color: #a8ff60; 45 | } 46 | 47 | .hljs-subst { 48 | color: #daefa3; 49 | } 50 | 51 | .hljs-regexp { 52 | color: #e9c062; 53 | } 54 | 55 | .hljs-title, 56 | .hljs-sub .hljs-identifier, 57 | .hljs-pi, 58 | .hljs-decorator, 59 | .tex .hljs-special, 60 | .hljs-type, 61 | .hljs-constant, 62 | .smalltalk .hljs-class, 63 | .hljs-javadoctag, 64 | .hljs-yardoctag, 65 | .hljs-phpdoc, 66 | .hljs-dartdoc, 67 | .nginx .hljs-built_in { 68 | color: #ffffb6; 69 | } 70 | 71 | .hljs-symbol, 72 | .ruby .hljs-symbol .hljs-string, 73 | .hljs-number, 74 | .hljs-variable, 75 | .vbscript, 76 | .hljs-literal, 77 | .hljs-name { 78 | color: #c6c5fe; 79 | } 80 | 81 | .css .hljs-tag { 82 | color: #96cbfe; 83 | } 84 | 85 | .css .hljs-rule .hljs-property, 86 | .css .hljs-id { 87 | color: #ffffb6; 88 | } 89 | 90 | .css .hljs-class { 91 | color: #fff; 92 | } 93 | 94 | .hljs-hexcolor { 95 | color: #c6c5fe; 96 | } 97 | 98 | .hljs-number { 99 | color:#ff73fd; 100 | } 101 | 102 | .coffeescript .javascript, 103 | .javascript .xml, 104 | .tex .hljs-formula, 105 | .xml .javascript, 106 | .xml .vbscript, 107 | .xml .css, 108 | .xml .hljs-cdata { 109 | opacity: 0.7; 110 | } 111 | -------------------------------------------------------------------------------- /js/highlight/styles/atelier-seaside.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Seaside Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Seaside Comment */ 6 | .hljs-comment { 7 | color: #809980; 8 | } 9 | 10 | /* Atelier-Seaside Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #e6193c; 25 | } 26 | 27 | /* Atelier-Seaside Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #87711d; 35 | } 36 | 37 | /* Atelier-Seaside Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #98981b; 41 | } 42 | 43 | /* Atelier-Seaside Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #29a329; 51 | } 52 | 53 | /* Atelier-Seaside Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #1999b3; 57 | } 58 | 59 | /* Atelier-Seaside Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #3d62f5; 69 | } 70 | 71 | /* Atelier-Seaside Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #ad2bee; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #131513; 81 | color: #8ca68c; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/atelier-seaside.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Seaside Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Seaside Comment */ 6 | .hljs-comment { 7 | color: #687d68; 8 | } 9 | 10 | /* Atelier-Seaside Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #e6193c; 25 | } 26 | 27 | /* Atelier-Seaside Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #87711d; 35 | } 36 | 37 | /* Atelier-Seaside Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #98981b; 41 | } 42 | 43 | /* Atelier-Seaside Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #29a329; 51 | } 52 | 53 | /* Atelier-Seaside Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #1999b3; 57 | } 58 | 59 | /* Atelier-Seaside Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #3d62f5; 69 | } 70 | 71 | /* Atelier-Seaside Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #ad2bee; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #f4fbf4; 81 | color: #5e6e5e; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/atelier-lakeside.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Lakeside Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Lakeside Comment */ 6 | .hljs-comment { 7 | color: #7195a8; 8 | } 9 | 10 | /* Atelier-Lakeside Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #d22d72; 25 | } 26 | 27 | /* Atelier-Lakeside Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #935c25; 35 | } 36 | 37 | /* Atelier-Lakeside Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #8a8a0f; 41 | } 42 | 43 | /* Atelier-Lakeside Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #568c3b; 51 | } 52 | 53 | /* Atelier-Lakeside Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #2d8f6f; 57 | } 58 | 59 | /* Atelier-Lakeside Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #257fad; 69 | } 70 | 71 | /* Atelier-Lakeside Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6b6bb8; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #161b1d; 81 | color: #7ea2b4; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/atelier-lakeside.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Lakeside Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Lakeside Comment */ 6 | .hljs-comment { 7 | color: #5a7b8c; 8 | } 9 | 10 | /* Atelier-Lakeside Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #d22d72; 25 | } 26 | 27 | /* Atelier-Lakeside Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #935c25; 35 | } 36 | 37 | /* Atelier-Lakeside Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #8a8a0f; 41 | } 42 | 43 | /* Atelier-Lakeside Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #568c3b; 51 | } 52 | 53 | /* Atelier-Lakeside Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #2d8f6f; 57 | } 58 | 59 | /* Atelier-Lakeside Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #257fad; 69 | } 70 | 71 | /* Atelier-Lakeside Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6b6bb8; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #ebf8ff; 81 | color: #516d7b; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/atelier-sulphurpool.dark.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Sulphurpool Dark - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Sulphurpool Comment */ 6 | .hljs-comment { 7 | color: #898ea4; 8 | } 9 | 10 | /* Atelier-Sulphurpool Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #c94922; 25 | } 26 | 27 | /* Atelier-Sulphurpool Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #c76b29; 35 | } 36 | 37 | /* Atelier-Sulphurpool Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #c08b30; 41 | } 42 | 43 | /* Atelier-Sulphurpool Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #ac9739; 51 | } 52 | 53 | /* Atelier-Sulphurpool Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #22a2c9; 57 | } 58 | 59 | /* Atelier-Sulphurpool Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #3d8fd1; 69 | } 70 | 71 | /* Atelier-Sulphurpool Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6679cc; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #202746; 81 | color: #979db4; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/atelier-sulphurpool.light.css: -------------------------------------------------------------------------------- 1 | /* Base16 Atelier Sulphurpool Light - Theme */ 2 | /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) */ 3 | /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */ 4 | 5 | /* Atelier-Sulphurpool Comment */ 6 | .hljs-comment { 7 | color: #6b7394; 8 | } 9 | 10 | /* Atelier-Sulphurpool Red */ 11 | .hljs-variable, 12 | .hljs-attribute, 13 | .hljs-tag, 14 | .hljs-regexp, 15 | .hljs-name, 16 | .ruby .hljs-constant, 17 | .xml .hljs-tag .hljs-title, 18 | .xml .hljs-pi, 19 | .xml .hljs-doctype, 20 | .html .hljs-doctype, 21 | .css .hljs-id, 22 | .css .hljs-class, 23 | .css .hljs-pseudo { 24 | color: #c94922; 25 | } 26 | 27 | /* Atelier-Sulphurpool Orange */ 28 | .hljs-number, 29 | .hljs-preprocessor, 30 | .hljs-built_in, 31 | .hljs-literal, 32 | .hljs-params, 33 | .hljs-constant { 34 | color: #c76b29; 35 | } 36 | 37 | /* Atelier-Sulphurpool Yellow */ 38 | .ruby .hljs-class .hljs-title, 39 | .css .hljs-rule .hljs-attribute { 40 | color: #c08b30; 41 | } 42 | 43 | /* Atelier-Sulphurpool Green */ 44 | .hljs-string, 45 | .hljs-value, 46 | .hljs-inheritance, 47 | .hljs-header, 48 | .ruby .hljs-symbol, 49 | .xml .hljs-cdata { 50 | color: #ac9739; 51 | } 52 | 53 | /* Atelier-Sulphurpool Aqua */ 54 | .hljs-title, 55 | .css .hljs-hexcolor { 56 | color: #22a2c9; 57 | } 58 | 59 | /* Atelier-Sulphurpool Blue */ 60 | .hljs-function, 61 | .python .hljs-decorator, 62 | .python .hljs-title, 63 | .ruby .hljs-function .hljs-title, 64 | .ruby .hljs-title .hljs-keyword, 65 | .perl .hljs-sub, 66 | .javascript .hljs-title, 67 | .coffeescript .hljs-title { 68 | color: #3d8fd1; 69 | } 70 | 71 | /* Atelier-Sulphurpool Purple */ 72 | .hljs-keyword, 73 | .javascript .hljs-function { 74 | color: #6679cc; 75 | } 76 | 77 | .hljs { 78 | display: block; 79 | overflow-x: auto; 80 | background: #f5f7ff; 81 | color: #5e6687; 82 | padding: 0.5em; 83 | -webkit-text-size-adjust: none; 84 | } 85 | 86 | .coffeescript .javascript, 87 | .javascript .xml, 88 | .tex .hljs-formula, 89 | .xml .javascript, 90 | .xml .vbscript, 91 | .xml .css, 92 | .xml .hljs-cdata { 93 | opacity: 0.5; 94 | } 95 | -------------------------------------------------------------------------------- /js/highlight/styles/solarized_dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #002b36; 12 | color: #839496; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .diff .hljs-header, 18 | .hljs-doctype, 19 | .hljs-pi, 20 | .lisp .hljs-string, 21 | .hljs-javadoc { 22 | color: #586e75; 23 | } 24 | 25 | /* Solarized Green */ 26 | .hljs-keyword, 27 | .hljs-winutils, 28 | .method, 29 | .hljs-addition, 30 | .css .hljs-tag, 31 | .hljs-request, 32 | .hljs-status, 33 | .nginx .hljs-title { 34 | color: #859900; 35 | } 36 | 37 | /* Solarized Cyan */ 38 | .hljs-number, 39 | .hljs-command, 40 | .hljs-string, 41 | .hljs-tag .hljs-value, 42 | .hljs-rule .hljs-value, 43 | .hljs-phpdoc, 44 | .hljs-dartdoc, 45 | .tex .hljs-formula, 46 | .hljs-regexp, 47 | .hljs-hexcolor, 48 | .hljs-link_url { 49 | color: #2aa198; 50 | } 51 | 52 | /* Solarized Blue */ 53 | .hljs-title, 54 | .hljs-localvars, 55 | .hljs-chunk, 56 | .hljs-decorator, 57 | .hljs-built_in, 58 | .hljs-identifier, 59 | .vhdl .hljs-literal, 60 | .hljs-id, 61 | .css .hljs-function, 62 | .hljs-name { 63 | color: #268bd2; 64 | } 65 | 66 | /* Solarized Yellow */ 67 | .hljs-attribute, 68 | .hljs-variable, 69 | .lisp .hljs-body, 70 | .smalltalk .hljs-number, 71 | .hljs-constant, 72 | .hljs-class .hljs-title, 73 | .hljs-parent, 74 | .hljs-type, 75 | .hljs-link_reference { 76 | color: #b58900; 77 | } 78 | 79 | /* Solarized Orange */ 80 | .hljs-preprocessor, 81 | .hljs-preprocessor .hljs-keyword, 82 | .hljs-pragma, 83 | .hljs-shebang, 84 | .hljs-symbol, 85 | .hljs-symbol .hljs-string, 86 | .diff .hljs-change, 87 | .hljs-special, 88 | .hljs-attr_selector, 89 | .hljs-subst, 90 | .hljs-cdata, 91 | .css .hljs-pseudo, 92 | .hljs-header { 93 | color: #cb4b16; 94 | } 95 | 96 | /* Solarized Red */ 97 | .hljs-deletion, 98 | .hljs-important { 99 | color: #dc322f; 100 | } 101 | 102 | /* Solarized Violet */ 103 | .hljs-link_label { 104 | color: #6c71c4; 105 | } 106 | 107 | .tex .hljs-formula { 108 | background: #073642; 109 | } 110 | -------------------------------------------------------------------------------- /js/highlight/styles/solarized_light.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #fdf6e3; 12 | color: #657b83; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .diff .hljs-header, 18 | .hljs-doctype, 19 | .hljs-pi, 20 | .lisp .hljs-string, 21 | .hljs-javadoc { 22 | color: #93a1a1; 23 | } 24 | 25 | /* Solarized Green */ 26 | .hljs-keyword, 27 | .hljs-winutils, 28 | .method, 29 | .hljs-addition, 30 | .css .hljs-tag, 31 | .hljs-request, 32 | .hljs-status, 33 | .nginx .hljs-title { 34 | color: #859900; 35 | } 36 | 37 | /* Solarized Cyan */ 38 | .hljs-number, 39 | .hljs-command, 40 | .hljs-string, 41 | .hljs-tag .hljs-value, 42 | .hljs-rule .hljs-value, 43 | .hljs-phpdoc, 44 | .hljs-dartdoc, 45 | .tex .hljs-formula, 46 | .hljs-regexp, 47 | .hljs-hexcolor, 48 | .hljs-link_url { 49 | color: #2aa198; 50 | } 51 | 52 | /* Solarized Blue */ 53 | .hljs-title, 54 | .hljs-localvars, 55 | .hljs-chunk, 56 | .hljs-decorator, 57 | .hljs-built_in, 58 | .hljs-identifier, 59 | .vhdl .hljs-literal, 60 | .hljs-id, 61 | .css .hljs-function, 62 | .hljs-name { 63 | color: #268bd2; 64 | } 65 | 66 | /* Solarized Yellow */ 67 | .hljs-attribute, 68 | .hljs-variable, 69 | .lisp .hljs-body, 70 | .smalltalk .hljs-number, 71 | .hljs-constant, 72 | .hljs-class .hljs-title, 73 | .hljs-parent, 74 | .hljs-type, 75 | .hljs-link_reference { 76 | color: #b58900; 77 | } 78 | 79 | /* Solarized Orange */ 80 | .hljs-preprocessor, 81 | .hljs-preprocessor .hljs-keyword, 82 | .hljs-pragma, 83 | .hljs-shebang, 84 | .hljs-symbol, 85 | .hljs-symbol .hljs-string, 86 | .diff .hljs-change, 87 | .hljs-special, 88 | .hljs-attr_selector, 89 | .hljs-subst, 90 | .hljs-cdata, 91 | .css .hljs-pseudo, 92 | .hljs-header { 93 | color: #cb4b16; 94 | } 95 | 96 | /* Solarized Red */ 97 | .hljs-deletion, 98 | .hljs-important { 99 | color: #dc322f; 100 | } 101 | 102 | /* Solarized Violet */ 103 | .hljs-link_label { 104 | color: #6c71c4; 105 | } 106 | 107 | .tex .hljs-formula { 108 | background: #eee8d5; 109 | } 110 | -------------------------------------------------------------------------------- /js/highlight/styles/pojoaque.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Pojoaque Style by Jason Tate 4 | http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html 5 | Based on Solarized Style from http://ethanschoonover.com/solarized 6 | 7 | */ 8 | 9 | .hljs { 10 | display: block; 11 | overflow-x: auto; 12 | padding: 0.5em; 13 | color: #dccf8f; 14 | background: url(./pojoaque.jpg) repeat scroll left top #181914; 15 | -webkit-text-size-adjust: none; 16 | } 17 | 18 | .hljs-comment, 19 | .diff .hljs-header, 20 | .hljs-doctype, 21 | .lisp .hljs-string, 22 | .hljs-javadoc { 23 | color: #586e75; 24 | font-style: italic; 25 | } 26 | 27 | .hljs-keyword, 28 | .css .rule .hljs-keyword, 29 | .hljs-winutils, 30 | .javascript .hljs-title, 31 | .method, 32 | .hljs-addition, 33 | .css .hljs-tag, 34 | .hljs-list .hljs-keyword, 35 | .nginx .hljs-title { 36 | color: #b64926; 37 | } 38 | 39 | .hljs-number, 40 | .hljs-command, 41 | .hljs-string, 42 | .hljs-tag .hljs-value, 43 | .hljs-phpdoc, 44 | .hljs-dartdoc, 45 | .tex .hljs-formula, 46 | .hljs-regexp, 47 | .hljs-hexcolor { 48 | color: #468966; 49 | } 50 | 51 | .hljs-title, 52 | .hljs-localvars, 53 | .hljs-function .hljs-title, 54 | .hljs-chunk, 55 | .hljs-decorator, 56 | .hljs-built_in, 57 | .hljs-identifier, 58 | .hljs-name, 59 | .hljs-id { 60 | color: #ffb03b; 61 | } 62 | 63 | .hljs-attribute, 64 | .hljs-variable, 65 | .lisp .hljs-body, 66 | .smalltalk .hljs-number, 67 | .hljs-constant, 68 | .hljs-class .hljs-title, 69 | .hljs-parent, 70 | .hljs-type { 71 | color: #b58900; 72 | } 73 | 74 | .css .hljs-attribute { 75 | color: #b89859; 76 | } 77 | 78 | .css .hljs-number, 79 | .css .hljs-hexcolor { 80 | color: #dccf8f; 81 | } 82 | 83 | .css .hljs-class { 84 | color: #d3a60c; 85 | } 86 | 87 | .hljs-preprocessor, 88 | .hljs-pragma, 89 | .hljs-pi, 90 | .hljs-shebang, 91 | .hljs-symbol, 92 | .hljs-symbol .hljs-string, 93 | .diff .hljs-change, 94 | .hljs-special, 95 | .hljs-attr_selector, 96 | .hljs-important, 97 | .hljs-subst, 98 | .hljs-cdata { 99 | color: #cb4b16; 100 | } 101 | 102 | .hljs-deletion { 103 | color: #dc322f; 104 | } 105 | 106 | .tex .hljs-formula { 107 | background: #073642; 108 | } 109 | -------------------------------------------------------------------------------- /js/highlight/styles/dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Dark style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #444; 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs-keyword, 16 | .hljs-literal, 17 | .hljs-change, 18 | .hljs-winutils, 19 | .hljs-flow, 20 | .nginx .hljs-title, 21 | .tex .hljs-special { 22 | color: white; 23 | } 24 | 25 | .hljs, 26 | .hljs-subst { 27 | color: #ddd; 28 | } 29 | 30 | .hljs-string, 31 | .hljs-title, 32 | .hljs-type, 33 | .ini .hljs-title, 34 | .hljs-tag .hljs-value, 35 | .css .hljs-rule .hljs-value, 36 | .hljs-preprocessor, 37 | .hljs-pragma, 38 | .ruby .hljs-symbol, 39 | .ruby .hljs-symbol .hljs-string, 40 | .ruby .hljs-class .hljs-parent, 41 | .hljs-built_in, 42 | .django .hljs-template_tag, 43 | .django .hljs-variable, 44 | .smalltalk .hljs-class, 45 | .hljs-javadoc, 46 | .ruby .hljs-string, 47 | .django .hljs-filter .hljs-argument, 48 | .smalltalk .hljs-localvars, 49 | .smalltalk .hljs-array, 50 | .hljs-attr_selector, 51 | .hljs-pseudo, 52 | .hljs-addition, 53 | .hljs-stream, 54 | .hljs-envvar, 55 | .apache .hljs-tag, 56 | .apache .hljs-cbracket, 57 | .tex .hljs-command, 58 | .hljs-prompt, 59 | .coffeescript .hljs-attribute, 60 | .hljs-name { 61 | color: #d88; 62 | } 63 | 64 | .hljs-comment, 65 | .hljs-annotation, 66 | .hljs-decorator, 67 | .hljs-pi, 68 | .hljs-doctype, 69 | .hljs-deletion, 70 | .hljs-shebang, 71 | .apache .hljs-sqbracket, 72 | .tex .hljs-formula { 73 | color: #777; 74 | } 75 | 76 | .hljs-keyword, 77 | .hljs-literal, 78 | .hljs-title, 79 | .css .hljs-id, 80 | .hljs-phpdoc, 81 | .hljs-dartdoc, 82 | .hljs-type, 83 | .vbscript .hljs-built_in, 84 | .rsl .hljs-built_in, 85 | .smalltalk .hljs-class, 86 | .diff .hljs-header, 87 | .hljs-chunk, 88 | .hljs-winutils, 89 | .bash .hljs-variable, 90 | .apache .hljs-tag, 91 | .tex .hljs-special, 92 | .hljs-request, 93 | .hljs-status { 94 | font-weight: bold; 95 | } 96 | 97 | .coffeescript .javascript, 98 | .javascript .xml, 99 | .tex .hljs-formula, 100 | .xml .javascript, 101 | .xml .vbscript, 102 | .xml .css, 103 | .xml .hljs-cdata { 104 | opacity: 0.5; 105 | } 106 | -------------------------------------------------------------------------------- /js/highlight/styles/brown_paper.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Brown Paper style from goldblog.com.ua (c) Zaripov Yura 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background:#b7a68e url(./brown_papersq.png); 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs-keyword, 16 | .hljs-literal, 17 | .hljs-change, 18 | .hljs-winutils, 19 | .hljs-flow, 20 | .nginx .hljs-title, 21 | .tex .hljs-special, 22 | .hljs-request, 23 | .hljs-status { 24 | color:#005599; 25 | font-weight:bold; 26 | } 27 | 28 | .hljs, 29 | .hljs-subst, 30 | .hljs-tag .hljs-keyword { 31 | color: #363c69; 32 | } 33 | 34 | .hljs-string, 35 | .hljs-title, 36 | .hljs-type, 37 | .hljs-tag .hljs-value, 38 | .css .hljs-rule .hljs-value, 39 | .hljs-preprocessor, 40 | .hljs-pragma, 41 | .ruby .hljs-symbol, 42 | .ruby .hljs-symbol .hljs-string, 43 | .ruby .hljs-class .hljs-parent, 44 | .hljs-built_in, 45 | .django .hljs-template_tag, 46 | .django .hljs-variable, 47 | .smalltalk .hljs-class, 48 | .hljs-javadoc, 49 | .ruby .hljs-string, 50 | .django .hljs-filter .hljs-argument, 51 | .smalltalk .hljs-localvars, 52 | .smalltalk .hljs-array, 53 | .hljs-attr_selector, 54 | .hljs-pseudo, 55 | .hljs-addition, 56 | .hljs-stream, 57 | .hljs-envvar, 58 | .apache .hljs-tag, 59 | .apache .hljs-cbracket, 60 | .tex .hljs-number, 61 | .hljs-name { 62 | color: #2c009f; 63 | } 64 | 65 | .hljs-comment, 66 | .hljs-annotation, 67 | .hljs-decorator, 68 | .hljs-pi, 69 | .hljs-doctype, 70 | .hljs-deletion, 71 | .hljs-shebang, 72 | .apache .hljs-sqbracket, 73 | .nginx .hljs-built_in, 74 | .tex .hljs-formula { 75 | color: #802022; 76 | } 77 | 78 | .hljs-keyword, 79 | .hljs-literal, 80 | .css .hljs-id, 81 | .hljs-phpdoc, 82 | .hljs-dartdoc, 83 | .hljs-title, 84 | .hljs-type, 85 | .vbscript .hljs-built_in, 86 | .rsl .hljs-built_in, 87 | .smalltalk .hljs-class, 88 | .diff .hljs-header, 89 | .hljs-chunk, 90 | .hljs-winutils, 91 | .bash .hljs-variable, 92 | .apache .hljs-tag, 93 | .tex .hljs-command { 94 | font-weight: bold; 95 | } 96 | 97 | .coffeescript .javascript, 98 | .javascript .xml, 99 | .tex .hljs-formula, 100 | .xml .javascript, 101 | .xml .vbscript, 102 | .xml .css, 103 | .xml .hljs-cdata { 104 | opacity: 0.8; 105 | } 106 | -------------------------------------------------------------------------------- /js/highlight/styles/github.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | github.com style (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | color: #333; 12 | background: #f8f8f8; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .diff .hljs-header, 18 | .hljs-javadoc { 19 | color: #998; 20 | font-style: italic; 21 | } 22 | 23 | .hljs-keyword, 24 | .css .rule .hljs-keyword, 25 | .hljs-winutils, 26 | .nginx .hljs-title, 27 | .hljs-subst, 28 | .hljs-request, 29 | .hljs-status { 30 | color: #333; 31 | font-weight: bold; 32 | } 33 | 34 | .hljs-number, 35 | .hljs-hexcolor, 36 | .ruby .hljs-constant { 37 | color: #008080; 38 | } 39 | 40 | .hljs-string, 41 | .hljs-tag .hljs-value, 42 | .hljs-phpdoc, 43 | .hljs-dartdoc, 44 | .tex .hljs-formula { 45 | color: #d14; 46 | } 47 | 48 | .hljs-title, 49 | .hljs-id, 50 | .scss .hljs-preprocessor { 51 | color: #900; 52 | font-weight: bold; 53 | } 54 | 55 | .hljs-list .hljs-keyword, 56 | .hljs-subst { 57 | font-weight: normal; 58 | } 59 | 60 | .hljs-class .hljs-title, 61 | .hljs-type, 62 | .vhdl .hljs-literal, 63 | .tex .hljs-command { 64 | color: #458; 65 | font-weight: bold; 66 | } 67 | 68 | .hljs-tag, 69 | .hljs-tag .hljs-title, 70 | .hljs-rule .hljs-property, 71 | .django .hljs-tag .hljs-keyword { 72 | color: #000080; 73 | font-weight: normal; 74 | } 75 | 76 | .hljs-attribute, 77 | .hljs-variable, 78 | .lisp .hljs-body, 79 | .hljs-name { 80 | color: #008080; 81 | } 82 | 83 | .hljs-regexp { 84 | color: #009926; 85 | } 86 | 87 | .hljs-symbol, 88 | .ruby .hljs-symbol .hljs-string, 89 | .lisp .hljs-keyword, 90 | .clojure .hljs-keyword, 91 | .scheme .hljs-keyword, 92 | .tex .hljs-special, 93 | .hljs-prompt { 94 | color: #990073; 95 | } 96 | 97 | .hljs-built_in { 98 | color: #0086b3; 99 | } 100 | 101 | .hljs-preprocessor, 102 | .hljs-pragma, 103 | .hljs-pi, 104 | .hljs-doctype, 105 | .hljs-shebang, 106 | .hljs-cdata { 107 | color: #999; 108 | font-weight: bold; 109 | } 110 | 111 | .hljs-deletion { 112 | background: #fdd; 113 | } 114 | 115 | .hljs-addition { 116 | background: #dfd; 117 | } 118 | 119 | .diff .hljs-change { 120 | background: #0086b3; 121 | } 122 | 123 | .hljs-chunk { 124 | color: #aaa; 125 | } 126 | -------------------------------------------------------------------------------- /js/highlight/styles/foundation.css: -------------------------------------------------------------------------------- 1 | /* 2 | Description: Foundation 4 docs style for highlight.js 3 | Author: Dan Allen 4 | Website: http://foundation.zurb.com/docs/ 5 | Version: 1.0 6 | Date: 2013-04-02 7 | */ 8 | 9 | .hljs { 10 | display: block; 11 | overflow-x: auto; 12 | padding: 0.5em; 13 | background: #eee; 14 | -webkit-text-size-adjust: none; 15 | } 16 | 17 | .hljs-header, 18 | .hljs-decorator, 19 | .hljs-annotation { 20 | color: #000077; 21 | } 22 | 23 | .hljs-horizontal_rule, 24 | .hljs-link_url, 25 | .hljs-emphasis, 26 | .hljs-attribute { 27 | color: #070; 28 | } 29 | 30 | .hljs-emphasis { 31 | font-style: italic; 32 | } 33 | 34 | .hljs-link_label, 35 | .hljs-strong, 36 | .hljs-value, 37 | .hljs-string, 38 | .scss .hljs-value .hljs-string { 39 | color: #d14; 40 | } 41 | 42 | .hljs-strong { 43 | font-weight: bold; 44 | } 45 | 46 | .hljs-blockquote, 47 | .hljs-comment { 48 | color: #998; 49 | font-style: italic; 50 | } 51 | 52 | .asciidoc .hljs-title, 53 | .hljs-function .hljs-title { 54 | color: #900; 55 | } 56 | 57 | .hljs-class { 58 | color: #458; 59 | } 60 | 61 | .hljs-id, 62 | .hljs-pseudo, 63 | .hljs-constant, 64 | .hljs-hexcolor { 65 | color: teal; 66 | } 67 | 68 | .hljs-variable { 69 | color: #336699; 70 | } 71 | 72 | .hljs-bullet, 73 | .hljs-javadoc { 74 | color: #997700; 75 | } 76 | 77 | .hljs-pi, 78 | .hljs-doctype { 79 | color: #3344bb; 80 | } 81 | 82 | .hljs-code, 83 | .hljs-number { 84 | color: #099; 85 | } 86 | 87 | .hljs-important { 88 | color: #f00; 89 | } 90 | 91 | .smartquote, 92 | .hljs-label { 93 | color: #970; 94 | } 95 | 96 | .hljs-preprocessor, 97 | .hljs-pragma { 98 | color: #579; 99 | } 100 | 101 | .hljs-reserved, 102 | .hljs-keyword, 103 | .scss .hljs-value { 104 | color: #000; 105 | } 106 | 107 | .hljs-regexp { 108 | background-color: #fff0ff; 109 | color: #880088; 110 | } 111 | 112 | .hljs-symbol { 113 | color: #990073; 114 | } 115 | 116 | .hljs-symbol .hljs-string { 117 | color: #a60; 118 | } 119 | 120 | .hljs-tag { 121 | color: #007700; 122 | } 123 | 124 | .hljs-at_rule, 125 | .hljs-at_rule .hljs-keyword { 126 | color: #088; 127 | } 128 | 129 | .hljs-at_rule .hljs-preprocessor { 130 | color: #808; 131 | } 132 | 133 | .scss .hljs-tag, 134 | .scss .hljs-attribute { 135 | color: #339; 136 | } 137 | -------------------------------------------------------------------------------- /js/highlight/styles/far.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | FAR Style (c) MajestiC 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #000080; 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs, 16 | .hljs-subst { 17 | color: #0ff; 18 | } 19 | 20 | .hljs-string, 21 | .ruby .hljs-string, 22 | .haskell .hljs-type, 23 | .hljs-tag .hljs-value, 24 | .hljs-rule .hljs-value, 25 | .hljs-rule .hljs-value .hljs-number, 26 | .hljs-preprocessor, 27 | .hljs-pragma, 28 | .ruby .hljs-symbol, 29 | .ruby .hljs-symbol .hljs-string, 30 | .hljs-built_in, 31 | .django .hljs-template_tag, 32 | .django .hljs-variable, 33 | .smalltalk .hljs-class, 34 | .hljs-addition, 35 | .apache .hljs-tag, 36 | .apache .hljs-cbracket, 37 | .tex .hljs-command, 38 | .coffeescript .hljs-attribute { 39 | color: #ff0; 40 | } 41 | 42 | .hljs-keyword, 43 | .css .hljs-id, 44 | .hljs-title, 45 | .hljs-type, 46 | .vbscript .hljs-built_in, 47 | .rsl .hljs-built_in, 48 | .smalltalk .hljs-class, 49 | .xml .hljs-tag .hljs-title, 50 | .hljs-winutils, 51 | .hljs-flow, 52 | .hljs-change, 53 | .hljs-envvar, 54 | .bash .hljs-variable, 55 | .tex .hljs-special, 56 | .hljs-name { 57 | color: #fff; 58 | } 59 | 60 | .hljs-comment, 61 | .hljs-phpdoc, 62 | .hljs-dartdoc, 63 | .hljs-javadoc, 64 | .hljs-annotation, 65 | .hljs-deletion, 66 | .apache .hljs-sqbracket, 67 | .tex .hljs-formula { 68 | color: #888; 69 | } 70 | 71 | .hljs-number, 72 | .hljs-date, 73 | .hljs-regexp, 74 | .hljs-literal, 75 | .smalltalk .hljs-symbol, 76 | .smalltalk .hljs-char, 77 | .clojure .hljs-attribute { 78 | color: #0f0; 79 | } 80 | 81 | .hljs-decorator, 82 | .django .hljs-filter .hljs-argument, 83 | .smalltalk .hljs-localvars, 84 | .smalltalk .hljs-array, 85 | .hljs-attr_selector, 86 | .hljs-pseudo, 87 | .xml .hljs-pi, 88 | .diff .hljs-header, 89 | .hljs-chunk, 90 | .hljs-shebang, 91 | .nginx .hljs-built_in, 92 | .hljs-prompt { 93 | color: #008080; 94 | } 95 | 96 | .hljs-keyword, 97 | .css .hljs-id, 98 | .hljs-title, 99 | .hljs-type, 100 | .vbscript .hljs-built_in, 101 | .rsl .hljs-built_in, 102 | .smalltalk .hljs-class, 103 | .hljs-winutils, 104 | .hljs-flow, 105 | .apache .hljs-tag, 106 | .nginx .hljs-built_in, 107 | .tex .hljs-command, 108 | .tex .hljs-special, 109 | .hljs-request, 110 | .hljs-status { 111 | font-weight: bold; 112 | } 113 | -------------------------------------------------------------------------------- /README-zh.md: -------------------------------------------------------------------------------- 1 | 2 | # Mango 编辑器 3 | 4 | ![Mango](./img/Mango1_256.png) 5 | 6 | ## 介绍 7 | 8 | **Mango** 是一个专为 Linux 平台而设计的 Markdown 编辑器,同时也支持 Windows 和 Mac OSX。由于我在 Linux 平台始终没有找到一款令我满意的 Markdown 编辑器,所以花了一个多星期的时间用 NW.js 实现了 Mango,[这里](http://egrcc.github.io/2015/04/12/mango-tutorial/)有我写的文章,简要介绍了我实现 Mango 的过程及原理。 9 | 10 | ## 主要特性 11 | 12 | #### 1. 跨平台支持 13 | 14 | **Mango** 由 [NW.js](http://nwjs.io/) 驱动,所以天然支持 **Windows**, **Mac OS X** 和 **Linux** 三个主流操作系统。由于没有 Mac 设备,所以没有为 Mac 提供下载。 15 | 16 | #### 2 . 实时预览和同步滚动 17 | 18 | Mango 默认左边是编辑区,右边是预览区。在编辑区的修改会实时显示到预览区,并且编辑区和预览区会同步滚动。可以在菜单`Mode`里切换显示模式。 19 | 20 | #### 3 . 数学公式 21 | 22 | **Mango** 提供了 **MathJax** 支持,可以让你方便的用 **LaTeX** 书写数学公式。行内公式,使用`$...$`,行间公式,使用`$$...$$`。 23 | 24 | ![](./img/readme_math.png) 25 | 26 | 27 | #### 4. 语法高亮 28 | 29 | 你可以想下面这样书写程序代码,在右边的预览区代码会高亮显示: 30 | 31 | ![](./img/readme_code.png) 32 | 33 | #### 5. 导出到多种格式 34 | 35 | 你可以方便地导出你的文档到 PDF (快捷键: `Ctrl + E`) 和 HTML (快捷键: `Shift + Ctrl + E`),并且外观格式跟在 Mango 里看到的几乎一样。 36 | 37 | ## 一些截图 38 | 39 | ![](./img/readme_screenshot1.png) 40 | 41 | 42 |
43 | ![](./img/readme_screenshot2.png) 44 | 45 |
46 | ![](./img/readme_screenshot3.png) 47 | 48 |
49 | ![](./img/readme_screenshot4.png) 50 | 51 | ## 下载 52 | 53 | - **Linux**: [32bit](https://github.com/egrcc/Mango-dists/blob/master/mango-v0.1.0-linux-ia32.tar.gz?raw=true) / [64bit](https://github.com/egrcc/Mango-dists/blob/master/mango-v0.1.0-linux-x64.tar.gz?raw=true) 54 | - **Windows**: [32bit](https://github.com/egrcc/Mango-dists/blob/master/mango-v0.1.0-win-ia32.zip?raw=true) / [64bit](https://github.com/egrcc/Mango-dists/blob/master/mango-v0.1.0-win-x64.zip?raw=true) 55 | - **Mac OSX**: 32bit / 64bit 56 | 57 | 如果觉得下载过慢,也可用下面百度云的链接下载: 58 | 59 | - **Linux**: [32bit](http://pan.baidu.com/s/1pJ3Ie4F) / [64bit](http://pan.baidu.com/s/1pJ3Ie4F) 60 | - **Windows**: [32bit](http://pan.baidu.com/s/1pJ3Ie4F) / [64bit](http://pan.baidu.com/s/1pJ3Ie4F) 61 | - **Mac OSX**: 32bit / 64bit 62 | 63 | 如果你安装了 NW.js,也可以直接从源代码运行。下载源码后,先用`npm install`安装一些依赖包。 64 | 65 | ## 感谢 66 | 67 | **Mango** 是一个开源项目,同时使用了很多其他的开源项目,向这些项目的作者表示感谢。详情请参见 [**Acknowlegements**](./docs/Acknowlegements.md)。 68 | 69 | ## License 70 | 71 | **Mango** 使用 GNU General Public License v3.0, 请参见 LICENSE 文件. 72 | 73 | ## 意见反馈 74 | 75 | - Twitter:[@egrcc](https://twitter.com/egrcc) 76 | - Weibo:[@egrcc](http://weibo.com/u/2948739432) 77 | - Email: [zhaolujun1994@gmail.com](mailto:zhaolujun1994@gmail.com) 78 | -------------------------------------------------------------------------------- /js/highlight/styles/idea.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Intellij Idea-like styling (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | color: #000; 12 | background: #fff; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-subst, 17 | .hljs-title, 18 | .json .hljs-value { 19 | font-weight: normal; 20 | color: #000; 21 | } 22 | 23 | .hljs-comment, 24 | .hljs-javadoc, 25 | .diff .hljs-header { 26 | color: #808080; 27 | font-style: italic; 28 | } 29 | 30 | .hljs-annotation, 31 | .hljs-decorator, 32 | .hljs-preprocessor, 33 | .hljs-pragma, 34 | .hljs-doctype, 35 | .hljs-pi, 36 | .hljs-chunk, 37 | .hljs-shebang, 38 | .apache .hljs-cbracket, 39 | .hljs-prompt, 40 | .http .hljs-title { 41 | color: #808000; 42 | } 43 | 44 | .hljs-tag, 45 | .hljs-pi { 46 | background: #efefef; 47 | } 48 | 49 | .hljs-tag .hljs-title, 50 | .hljs-id, 51 | .hljs-attr_selector, 52 | .hljs-pseudo, 53 | .hljs-literal, 54 | .hljs-keyword, 55 | .hljs-hexcolor, 56 | .css .hljs-function, 57 | .ini .hljs-title, 58 | .css .hljs-class, 59 | .hljs-list .hljs-keyword, 60 | .nginx .hljs-title, 61 | .tex .hljs-command, 62 | .hljs-request, 63 | .hljs-status { 64 | font-weight: bold; 65 | color: #000080; 66 | } 67 | 68 | .hljs-attribute, 69 | .hljs-rule .hljs-keyword, 70 | .hljs-number, 71 | .hljs-date, 72 | .hljs-regexp, 73 | .tex .hljs-special { 74 | font-weight: bold; 75 | color: #0000ff; 76 | } 77 | 78 | .hljs-number, 79 | .hljs-regexp { 80 | font-weight: normal; 81 | } 82 | 83 | .hljs-string, 84 | .hljs-value, 85 | .hljs-filter .hljs-argument, 86 | .css .hljs-function .hljs-params, 87 | .apache .hljs-tag { 88 | color: #008000; 89 | font-weight: bold; 90 | } 91 | 92 | .hljs-symbol, 93 | .ruby .hljs-symbol .hljs-string, 94 | .hljs-char, 95 | .tex .hljs-formula { 96 | color: #000; 97 | background: #d0eded; 98 | font-style: italic; 99 | } 100 | 101 | .hljs-phpdoc, 102 | .hljs-dartdoc, 103 | .hljs-yardoctag, 104 | .hljs-javadoctag { 105 | text-decoration: underline; 106 | } 107 | 108 | .hljs-variable, 109 | .hljs-envvar, 110 | .apache .hljs-sqbracket, 111 | .nginx .hljs-built_in, 112 | .hljs-name { 113 | color: #660e7a; 114 | } 115 | 116 | .hljs-addition { 117 | background: #baeeba; 118 | } 119 | 120 | .hljs-deletion { 121 | background: #ffc8bd; 122 | } 123 | 124 | .diff .hljs-change { 125 | background: #bccff9; 126 | } 127 | -------------------------------------------------------------------------------- /js/highlight/styles/zenburn.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov 4 | based on dark.css by Ivan Sagalaev 5 | 6 | */ 7 | 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #3f3f3f; 13 | color: #dcdcdc; 14 | -webkit-text-size-adjust: none; 15 | } 16 | 17 | .hljs-keyword, 18 | .hljs-tag, 19 | .css .hljs-class, 20 | .css .hljs-id, 21 | .lisp .hljs-title, 22 | .nginx .hljs-title, 23 | .hljs-request, 24 | .hljs-status, 25 | .clojure .hljs-attribute { 26 | color: #e3ceab; 27 | } 28 | 29 | .django .hljs-template_tag, 30 | .django .hljs-variable, 31 | .django .hljs-filter .hljs-argument { 32 | color: #dcdcdc; 33 | } 34 | 35 | .hljs-number, 36 | .hljs-date { 37 | color: #8cd0d3; 38 | } 39 | 40 | .dos .hljs-envvar, 41 | .dos .hljs-stream, 42 | .hljs-variable, 43 | .apache .hljs-sqbracket, 44 | .hljs-name { 45 | color: #efdcbc; 46 | } 47 | 48 | .dos .hljs-flow, 49 | .diff .hljs-change, 50 | .python .exception, 51 | .python .hljs-built_in, 52 | .hljs-literal, 53 | .tex .hljs-special { 54 | color: #efefaf; 55 | } 56 | 57 | .diff .hljs-chunk, 58 | .hljs-subst { 59 | color: #8f8f8f; 60 | } 61 | 62 | .dos .hljs-keyword, 63 | .hljs-decorator, 64 | .hljs-title, 65 | .hljs-type, 66 | .diff .hljs-header, 67 | .ruby .hljs-class .hljs-parent, 68 | .apache .hljs-tag, 69 | .nginx .hljs-built_in, 70 | .tex .hljs-command, 71 | .hljs-prompt { 72 | color: #efef8f; 73 | } 74 | 75 | .dos .hljs-winutils, 76 | .ruby .hljs-symbol, 77 | .ruby .hljs-symbol .hljs-string, 78 | .ruby .hljs-string { 79 | color: #dca3a3; 80 | } 81 | 82 | .diff .hljs-deletion, 83 | .hljs-string, 84 | .hljs-tag .hljs-value, 85 | .hljs-preprocessor, 86 | .hljs-pragma, 87 | .hljs-built_in, 88 | .hljs-javadoc, 89 | .smalltalk .hljs-class, 90 | .smalltalk .hljs-localvars, 91 | .smalltalk .hljs-array, 92 | .css .hljs-rule .hljs-value, 93 | .hljs-attr_selector, 94 | .hljs-pseudo, 95 | .apache .hljs-cbracket, 96 | .tex .hljs-formula, 97 | .coffeescript .hljs-attribute { 98 | color: #cc9393; 99 | } 100 | 101 | .hljs-shebang, 102 | .diff .hljs-addition, 103 | .hljs-comment, 104 | .hljs-annotation, 105 | .hljs-pi, 106 | .hljs-doctype { 107 | color: #7f9f7f; 108 | } 109 | 110 | .coffeescript .javascript, 111 | .javascript .xml, 112 | .tex .hljs-formula, 113 | .xml .javascript, 114 | .xml .vbscript, 115 | .xml .css, 116 | .xml .hljs-cdata { 117 | opacity: 0.5; 118 | } 119 | 120 | -------------------------------------------------------------------------------- /js/highlight/styles/magula.css: -------------------------------------------------------------------------------- 1 | /* 2 | Description: Magula style for highligh.js 3 | Author: Ruslan Keba 4 | Website: http://rukeba.com/ 5 | Version: 1.0 6 | Date: 2009-01-03 7 | Music: Aphex Twin / Xtal 8 | */ 9 | 10 | .hljs { 11 | display: block; 12 | overflow-x: auto; 13 | padding: 0.5em; 14 | background-color: #f4f4f4; 15 | -webkit-text-size-adjust: none; 16 | } 17 | 18 | .hljs, 19 | .hljs-subst { 20 | color: black; 21 | } 22 | 23 | .hljs-string, 24 | .hljs-title, 25 | .hljs-parent, 26 | .hljs-tag .hljs-value, 27 | .hljs-rule .hljs-value, 28 | .hljs-preprocessor, 29 | .hljs-pragma, 30 | .ruby .hljs-symbol, 31 | .ruby .hljs-symbol .hljs-string, 32 | .hljs-template_tag, 33 | .django .hljs-variable, 34 | .smalltalk .hljs-class, 35 | .hljs-addition, 36 | .hljs-flow, 37 | .hljs-stream, 38 | .bash .hljs-variable, 39 | .apache .hljs-cbracket, 40 | .coffeescript .hljs-attribute { 41 | color: #050; 42 | } 43 | 44 | .hljs-comment, 45 | .hljs-annotation, 46 | .diff .hljs-header, 47 | .hljs-chunk { 48 | color: #777; 49 | } 50 | 51 | .hljs-number, 52 | .hljs-date, 53 | .hljs-regexp, 54 | .hljs-literal, 55 | .hljs-name, 56 | .smalltalk .hljs-symbol, 57 | .smalltalk .hljs-char, 58 | .hljs-change, 59 | .tex .hljs-special { 60 | color: #800; 61 | } 62 | 63 | .hljs-label, 64 | .hljs-javadoc, 65 | .ruby .hljs-string, 66 | .hljs-decorator, 67 | .hljs-filter .hljs-argument, 68 | .hljs-localvars, 69 | .hljs-array, 70 | .hljs-attr_selector, 71 | .hljs-pseudo, 72 | .hljs-pi, 73 | .hljs-doctype, 74 | .hljs-deletion, 75 | .hljs-envvar, 76 | .hljs-shebang, 77 | .apache .hljs-sqbracket, 78 | .nginx .hljs-built_in, 79 | .tex .hljs-formula, 80 | .hljs-prompt, 81 | .clojure .hljs-attribute { 82 | color: #00e; 83 | } 84 | 85 | .hljs-keyword, 86 | .hljs-id, 87 | .hljs-phpdoc, 88 | .hljs-dartdoc, 89 | .hljs-title, 90 | .hljs-built_in, 91 | .smalltalk .hljs-class, 92 | .hljs-winutils, 93 | .bash .hljs-variable, 94 | .apache .hljs-tag, 95 | .xml .hljs-tag, 96 | .tex .hljs-command, 97 | .hljs-request, 98 | .hljs-status { 99 | font-weight: bold; 100 | color: navy; 101 | } 102 | 103 | .nginx .hljs-built_in { 104 | font-weight: normal; 105 | } 106 | 107 | .coffeescript .javascript, 108 | .javascript .xml, 109 | .tex .hljs-formula, 110 | .xml .javascript, 111 | .xml .vbscript, 112 | .xml .css, 113 | .xml .hljs-cdata { 114 | opacity: 0.5; 115 | } 116 | 117 | /* --- */ 118 | .apache .hljs-tag { 119 | font-weight: bold; 120 | color: blue; 121 | } 122 | 123 | -------------------------------------------------------------------------------- /js/highlight/styles/school_book.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | School Book style from goldblog.com.ua (c) Zaripov Yura 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 15px 0.5em 0.5em 30px; 11 | font-size: 11px !important; 12 | line-height:16px !important; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | pre{ 17 | background:#f6f6ae url(./school_book.png); 18 | border-top: solid 2px #d2e8b9; 19 | border-bottom: solid 1px #d2e8b9; 20 | } 21 | 22 | .hljs-keyword, 23 | .hljs-literal, 24 | .hljs-change, 25 | .hljs-winutils, 26 | .hljs-flow, 27 | .nginx .hljs-title, 28 | .tex .hljs-special { 29 | color:#005599; 30 | font-weight:bold; 31 | } 32 | 33 | .hljs, 34 | .hljs-subst, 35 | .hljs-tag .hljs-keyword { 36 | color: #3e5915; 37 | } 38 | 39 | .hljs-string, 40 | .hljs-title, 41 | .hljs-type, 42 | .hljs-tag .hljs-value, 43 | .css .hljs-rule .hljs-value, 44 | .hljs-preprocessor, 45 | .hljs-pragma, 46 | .ruby .hljs-symbol, 47 | .ruby .hljs-symbol .hljs-string, 48 | .ruby .hljs-class .hljs-parent, 49 | .hljs-built_in, 50 | .django .hljs-template_tag, 51 | .django .hljs-variable, 52 | .smalltalk .hljs-class, 53 | .hljs-javadoc, 54 | .ruby .hljs-string, 55 | .django .hljs-filter .hljs-argument, 56 | .smalltalk .hljs-localvars, 57 | .smalltalk .hljs-array, 58 | .hljs-attr_selector, 59 | .hljs-pseudo, 60 | .hljs-addition, 61 | .hljs-stream, 62 | .hljs-envvar, 63 | .apache .hljs-tag, 64 | .apache .hljs-cbracket, 65 | .nginx .hljs-built_in, 66 | .tex .hljs-command, 67 | .coffeescript .hljs-attribute, 68 | .hljs-name { 69 | color: #2c009f; 70 | } 71 | 72 | .hljs-comment, 73 | .hljs-annotation, 74 | .hljs-decorator, 75 | .hljs-pi, 76 | .hljs-doctype, 77 | .hljs-deletion, 78 | .hljs-shebang, 79 | .apache .hljs-sqbracket { 80 | color: #e60415; 81 | } 82 | 83 | .hljs-keyword, 84 | .hljs-literal, 85 | .css .hljs-id, 86 | .hljs-phpdoc, 87 | .hljs-dartdoc, 88 | .hljs-title, 89 | .hljs-type, 90 | .vbscript .hljs-built_in, 91 | .rsl .hljs-built_in, 92 | .smalltalk .hljs-class, 93 | .xml .hljs-tag .hljs-title, 94 | .diff .hljs-header, 95 | .hljs-chunk, 96 | .hljs-winutils, 97 | .bash .hljs-variable, 98 | .apache .hljs-tag, 99 | .tex .hljs-command, 100 | .hljs-request, 101 | .hljs-status { 102 | font-weight: bold; 103 | } 104 | 105 | .coffeescript .javascript, 106 | .javascript .xml, 107 | .tex .hljs-formula, 108 | .xml .javascript, 109 | .xml .vbscript, 110 | .xml .css, 111 | .xml .hljs-cdata { 112 | opacity: 0.5; 113 | } 114 | -------------------------------------------------------------------------------- /js/highlight/styles/docco.css: -------------------------------------------------------------------------------- 1 | /* 2 | Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine (@thingsinjars) 3 | */ 4 | 5 | .hljs { 6 | display: block; 7 | overflow-x: auto; 8 | padding: 0.5em; 9 | color: #000; 10 | background: #f8f8ff; 11 | -webkit-text-size-adjust: none; 12 | } 13 | 14 | .hljs-comment, 15 | .diff .hljs-header, 16 | .hljs-javadoc { 17 | color: #408080; 18 | font-style: italic; 19 | } 20 | 21 | .hljs-keyword, 22 | .assignment, 23 | .hljs-literal, 24 | .css .rule .hljs-keyword, 25 | .hljs-winutils, 26 | .javascript .hljs-title, 27 | .lisp .hljs-title, 28 | .hljs-subst { 29 | color: #954121; 30 | } 31 | 32 | .hljs-number, 33 | .hljs-hexcolor { 34 | color: #40a070; 35 | } 36 | 37 | .hljs-string, 38 | .hljs-tag .hljs-value, 39 | .hljs-phpdoc, 40 | .hljs-dartdoc, 41 | .tex .hljs-formula, 42 | .hljs-name { 43 | color: #219161; 44 | } 45 | 46 | .hljs-title, 47 | .hljs-id { 48 | color: #19469d; 49 | } 50 | .hljs-params { 51 | color: #00f; 52 | } 53 | 54 | .javascript .hljs-title, 55 | .lisp .hljs-title, 56 | .hljs-subst { 57 | font-weight: normal; 58 | } 59 | 60 | .hljs-class .hljs-title, 61 | .haskell .hljs-label, 62 | .tex .hljs-command { 63 | color: #458; 64 | font-weight: bold; 65 | } 66 | 67 | .hljs-tag, 68 | .hljs-tag .hljs-title, 69 | .hljs-rule .hljs-property, 70 | .django .hljs-tag .hljs-keyword { 71 | color: #000080; 72 | font-weight: normal; 73 | } 74 | 75 | .hljs-attribute, 76 | .hljs-variable, 77 | .instancevar, 78 | .lisp .hljs-body { 79 | color: #008080; 80 | } 81 | 82 | .hljs-regexp { 83 | color: #b68; 84 | } 85 | 86 | .hljs-class { 87 | color: #458; 88 | font-weight: bold; 89 | } 90 | 91 | .hljs-symbol, 92 | .ruby .hljs-symbol .hljs-string, 93 | .ruby .hljs-symbol .hljs-keyword, 94 | .ruby .hljs-symbol .keymethods, 95 | .lisp .hljs-keyword, 96 | .tex .hljs-special, 97 | .input_number { 98 | color: #990073; 99 | } 100 | 101 | .builtin, 102 | .constructor, 103 | .hljs-built_in, 104 | .lisp .hljs-title { 105 | color: #0086b3; 106 | } 107 | 108 | .hljs-preprocessor, 109 | .hljs-pragma, 110 | .hljs-pi, 111 | .hljs-doctype, 112 | .hljs-shebang, 113 | .hljs-cdata { 114 | color: #999; 115 | font-weight: bold; 116 | } 117 | 118 | .hljs-deletion { 119 | background: #fdd; 120 | } 121 | 122 | .hljs-addition { 123 | background: #dfd; 124 | } 125 | 126 | .diff .hljs-change { 127 | background: #0086b3; 128 | } 129 | 130 | .hljs-chunk { 131 | color: #aaa; 132 | } 133 | 134 | .tex .hljs-formula { 135 | opacity: 0.5; 136 | } 137 | -------------------------------------------------------------------------------- /js/highlight/styles/agate.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Agate by Taufik Nurrohman 3 | * ---------------------------------------------------- 4 | * 5 | * #ade5fc 6 | * #a2fca2 7 | * #c6b4f0 8 | * #d36363 9 | * #fcc28c 10 | * #fc9b9b 11 | * #ffa 12 | * #fff 13 | * #333 14 | * #62c8f3 15 | * #888 16 | * 17 | */ 18 | 19 | .hljs { 20 | display: block; 21 | overflow-x: auto; 22 | padding: .5em; 23 | background: #333; 24 | color: white; 25 | -webkit-text-size-adjust: none; 26 | } 27 | 28 | .asciidoc .hljs-title, 29 | .hljs-label, 30 | .hljs-tag .hljs-title, 31 | .hljs-prompt, 32 | .http .hljs-request { 33 | font-weight: bold; 34 | } 35 | 36 | .hljs-change, 37 | .hljs-code { 38 | font-style: italic; 39 | } 40 | 41 | .hljs-tag, 42 | .ini .hljs-title { 43 | color: #62c8f3; 44 | } 45 | 46 | .hljs-id, 47 | .hljs-cbracket, 48 | .hljs-tag .hljs-value { 49 | color: #ade5fc; 50 | } 51 | 52 | .hljs-string, 53 | .hljs-bullet { 54 | color: #a2fca2; 55 | } 56 | 57 | .hljs-type, 58 | .hljs-variable, 59 | .hljs-name, 60 | .actionscript .hljs-title, 61 | .aspectj .hljs-annotation, 62 | .aspectj .hljs-title, 63 | .hljs-attribute, 64 | .hljs-change, 65 | .hljs-blockquote, 66 | .hljs-built_in { 67 | color: #ffa; 68 | } 69 | 70 | .hljs-number, 71 | .hljs-hexcolor, 72 | .hljs-link_label, 73 | .hljs-link_reference { 74 | color: #d36363; 75 | } 76 | 77 | .hljs-keyword, 78 | .hljs-literal, 79 | .hljs-constant, 80 | .css .hljs-tag, 81 | .hljs-typename, 82 | .hljs-winutils { 83 | color: #fcc28c; 84 | } 85 | 86 | .hljs-comment, 87 | .hljs-cdata, 88 | .hljs-preprocessor, 89 | .hljs-annotation, 90 | .hljs-decorator, 91 | .hljs-doctype, 92 | .hljs-deletion, 93 | .hljs-shebang, 94 | .apache .hljs-sqbracket, 95 | .tex .hljs-formula, 96 | .hljs-header, 97 | .hljs-horizontal_rule, 98 | .hljs-code, 99 | .hljs-javadoc { 100 | color: #888; 101 | } 102 | 103 | .hljs-regexp, 104 | .hljs-attr_selector { 105 | color: #c6b4f0; 106 | } 107 | 108 | .hljs-important, 109 | .hljs-doctype, 110 | .hljs-pi, 111 | .hljs-chunk, 112 | .actionscript .hljs-type, 113 | .hljs-shebang, 114 | .hljs-pragma, 115 | .http .hljs-attribute { 116 | color: #fc9b9b; 117 | } 118 | 119 | .hljs-deletion { 120 | background-color: #fc9b9b; 121 | color: #333; 122 | } 123 | 124 | .hljs-addition { 125 | background-color: #a2fca2; 126 | color: #333; 127 | } 128 | 129 | .hljs a, 130 | .hljs-tag .hljs-attribute { 131 | color: inherit; 132 | } 133 | 134 | .hljs a:focus, 135 | .hljs a:hover { 136 | color: inherit; 137 | text-decoration: underline; 138 | } 139 | -------------------------------------------------------------------------------- /js/highlight/styles/monokai.css: -------------------------------------------------------------------------------- 1 | /* 2 | Monokai style - ported by Luigi Maselli - http://grigio.org 3 | */ 4 | 5 | .hljs { 6 | display: block; 7 | overflow-x: auto; 8 | padding: 0.5em; 9 | background: #272822; 10 | -webkit-text-size-adjust: none; 11 | } 12 | 13 | .hljs-tag, 14 | .hljs-tag .hljs-title, 15 | .hljs-keyword, 16 | .hljs-literal, 17 | .hljs-strong, 18 | .hljs-change, 19 | .hljs-winutils, 20 | .hljs-flow, 21 | .nginx .hljs-title, 22 | .tex .hljs-special { 23 | color: #f92672; 24 | } 25 | 26 | .hljs { 27 | color: #ddd; 28 | } 29 | 30 | .hljs .hljs-constant, 31 | .asciidoc .hljs-code, 32 | .markdown .hljs-code { 33 | color: #66d9ef; 34 | } 35 | 36 | .hljs-code, 37 | .hljs-class .hljs-title, 38 | .hljs-header { 39 | color: white; 40 | } 41 | 42 | .hljs-link_label, 43 | .hljs-attribute, 44 | .hljs-symbol, 45 | .hljs-symbol .hljs-string, 46 | .hljs-value, 47 | .hljs-regexp { 48 | color: #bf79db; 49 | } 50 | 51 | .hljs-link_url, 52 | .hljs-tag .hljs-value, 53 | .hljs-string, 54 | .hljs-bullet, 55 | .hljs-subst, 56 | .hljs-title, 57 | .hljs-emphasis, 58 | .hljs-type, 59 | .hljs-preprocessor, 60 | .hljs-pragma, 61 | .ruby .hljs-class .hljs-parent, 62 | .hljs-built_in, 63 | .django .hljs-template_tag, 64 | .django .hljs-variable, 65 | .smalltalk .hljs-class, 66 | .hljs-javadoc, 67 | .django .hljs-filter .hljs-argument, 68 | .smalltalk .hljs-localvars, 69 | .smalltalk .hljs-array, 70 | .hljs-attr_selector, 71 | .hljs-pseudo, 72 | .hljs-addition, 73 | .hljs-stream, 74 | .hljs-envvar, 75 | .apache .hljs-tag, 76 | .apache .hljs-cbracket, 77 | .tex .hljs-command, 78 | .hljs-prompt, 79 | .hljs-name { 80 | color: #a6e22e; 81 | } 82 | 83 | .hljs-comment, 84 | .hljs-annotation, 85 | .smartquote, 86 | .hljs-blockquote, 87 | .hljs-horizontal_rule, 88 | .hljs-decorator, 89 | .hljs-pi, 90 | .hljs-doctype, 91 | .hljs-deletion, 92 | .hljs-shebang, 93 | .apache .hljs-sqbracket, 94 | .tex .hljs-formula { 95 | color: #75715e; 96 | } 97 | 98 | .hljs-keyword, 99 | .hljs-literal, 100 | .css .hljs-id, 101 | .hljs-phpdoc, 102 | .hljs-dartdoc, 103 | .hljs-title, 104 | .hljs-header, 105 | .hljs-type, 106 | .vbscript .hljs-built_in, 107 | .rsl .hljs-built_in, 108 | .smalltalk .hljs-class, 109 | .diff .hljs-header, 110 | .hljs-chunk, 111 | .hljs-winutils, 112 | .bash .hljs-variable, 113 | .apache .hljs-tag, 114 | .tex .hljs-special, 115 | .hljs-request, 116 | .hljs-status { 117 | font-weight: bold; 118 | } 119 | 120 | .coffeescript .javascript, 121 | .javascript .xml, 122 | .tex .hljs-formula, 123 | .xml .javascript, 124 | .xml .vbscript, 125 | .xml .css, 126 | .xml .hljs-cdata { 127 | opacity: 0.5; 128 | } 129 | -------------------------------------------------------------------------------- /js/highlight/styles/googlecode.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Google Code style (c) Aahan Krish 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: white; 12 | color: black; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .hljs-javadoc { 18 | color: #800; 19 | } 20 | 21 | .hljs-keyword, 22 | .method, 23 | .hljs-list .hljs-keyword, 24 | .nginx .hljs-title, 25 | .hljs-tag .hljs-title, 26 | .setting .hljs-value, 27 | .hljs-winutils, 28 | .tex .hljs-command, 29 | .http .hljs-title, 30 | .hljs-request, 31 | .hljs-status { 32 | color: #008; 33 | } 34 | 35 | .hljs-envvar, 36 | .tex .hljs-special { 37 | color: #660; 38 | } 39 | 40 | .hljs-string, 41 | .hljs-tag .hljs-value, 42 | .hljs-cdata, 43 | .hljs-filter .hljs-argument, 44 | .hljs-attr_selector, 45 | .apache .hljs-cbracket, 46 | .hljs-date, 47 | .hljs-regexp, 48 | .coffeescript .hljs-attribute { 49 | color: #080; 50 | } 51 | 52 | .hljs-sub .hljs-identifier, 53 | .hljs-pi, 54 | .hljs-tag, 55 | .hljs-tag .hljs-keyword, 56 | .hljs-decorator, 57 | .ini .hljs-title, 58 | .hljs-shebang, 59 | .hljs-prompt, 60 | .hljs-hexcolor, 61 | .hljs-rule .hljs-value, 62 | .hljs-literal, 63 | .hljs-symbol, 64 | .ruby .hljs-symbol .hljs-string, 65 | .hljs-number, 66 | .css .hljs-function, 67 | .clojure .hljs-attribute { 68 | color: #066; 69 | } 70 | 71 | .hljs-class .hljs-title, 72 | .smalltalk .hljs-class, 73 | .hljs-javadoctag, 74 | .hljs-yardoctag, 75 | .hljs-phpdoc, 76 | .hljs-dartdoc, 77 | .hljs-type, 78 | .hljs-typename, 79 | .hljs-tag .hljs-attribute, 80 | .hljs-doctype, 81 | .hljs-class .hljs-id, 82 | .hljs-built_in, 83 | .setting, 84 | .hljs-params, 85 | .hljs-variable, 86 | .hljs-name { 87 | color: #606; 88 | } 89 | 90 | .css .hljs-tag, 91 | .hljs-rule .hljs-property, 92 | .hljs-pseudo, 93 | .hljs-subst { 94 | color: #000; 95 | } 96 | 97 | .css .hljs-class, 98 | .css .hljs-id { 99 | color: #9b703f; 100 | } 101 | 102 | .hljs-value .hljs-important { 103 | color: #ff7700; 104 | font-weight: bold; 105 | } 106 | 107 | .hljs-rule .hljs-keyword { 108 | color: #c5af75; 109 | } 110 | 111 | .hljs-annotation, 112 | .apache .hljs-sqbracket, 113 | .nginx .hljs-built_in { 114 | color: #9b859d; 115 | } 116 | 117 | .hljs-preprocessor, 118 | .hljs-preprocessor *, 119 | .hljs-pragma { 120 | color: #444; 121 | } 122 | 123 | .tex .hljs-formula { 124 | background-color: #eee; 125 | font-style: italic; 126 | } 127 | 128 | .diff .hljs-header, 129 | .hljs-chunk { 130 | color: #808080; 131 | font-weight: bold; 132 | } 133 | 134 | .diff .hljs-change { 135 | background-color: #bccff9; 136 | } 137 | 138 | .hljs-addition { 139 | background-color: #baeeba; 140 | } 141 | 142 | .hljs-deletion { 143 | background-color: #ffc8bd; 144 | } 145 | 146 | .hljs-comment .hljs-yardoctag { 147 | font-weight: bold; 148 | } 149 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Mango Editor for Markdown 3 | 4 | ![Mango](./img/Mango1_256.png) 5 | 6 | ## What is Mango? 7 | 8 | **Mango** is a Markdown editor designed for Linux, also supports Windows and Mac OSX. It's not only supports Markdown, but also extends Markdown syntax with some nice features to help people conveniently write **mathematical formula** and **code**. I wrote a blog in [here](http://egrcc.github.io/2015/04/12/mango-tutorial/) (in chinese) which describes the implementation of Mango. 9 | 10 | 中文说明见[这里](./README-zh.md). 11 | 12 | ## Main Features 13 | 14 | #### 1. Cross Platform Support 15 | 16 | **Mango** is powered by [NW.js](http://nwjs.io/), so it supports all three major operating systems: **Windows**, **Mac OS X**, and **Linux**. 17 | 18 | #### 2 . Live Preview with Scroll Sync 19 | 20 | **Mango**’s Scroll Sync accurately binds the scrollbars of the editor panel and the preview panel to ensure that you always keep an eye on the output while writing. 21 | 22 | #### 3 . Mathematics Expression 23 | 24 | With **MathJax** support you can render beautiful **LaTeX** expressions. For inline formulas, enclose the formula in `$...$`. For displayed formulas, use `$$...$$`. 25 | 26 | ![](./img/readme_math.png) 27 | 28 | 29 | 30 | 31 | #### 4. Syntax Highlighting 32 | 33 | You can write code like below, that will highlighted in the Live Preview: 34 | 35 | ![](./img/readme_code.png) 36 | 37 | #### 5. Export to Various Formats 38 | 39 | You can conveniently export your documents to PDF (shortcut: `Ctrl + E`) and HTML (shortcut: `Shift + Ctrl + E`) with beautiful theme. 40 | 41 | ## Screenshots 42 | 43 | ![](./img/readme_screenshot1.png) 44 | 45 | 46 |
47 | ![](./img/readme_screenshot2.png) 48 | 49 |
50 | ![](./img/readme_screenshot3.png) 51 | 52 |
53 | ![](./img/readme_screenshot4.png) 54 | 55 | ## Downloads 56 | 57 | - **Linux**: [32bit](https://github.com/egrcc/Mango-dists/blob/master/mango-v0.1.0-linux-ia32.tar.gz?raw=true) / [64bit](https://github.com/egrcc/Mango-dists/blob/master/mango-v0.1.0-linux-x64.tar.gz?raw=true) 58 | - **Windows**: [32bit](https://github.com/egrcc/Mango-dists/blob/master/mango-v0.1.0-win-ia32.zip?raw=true) / [64bit](https://github.com/egrcc/Mango-dists/blob/master/mango-v0.1.0-win-x64.zip?raw=true) 59 | - **Mac OSX**: 32bit / 64bit 60 | 61 | If you have NW.js installed, you can also run from source code. 62 | 63 | ## Acknowlegements 64 | 65 | **Mango** is a open source project, and uses many other open source projects. For detailed information, please see [**Acknowlegements**](./docs/Acknowlegements.md) in docs. 66 | 67 | ## License 68 | 69 | **Mango** uses the GNU General Public License v3.0, see LICENSE file. 70 | 71 | ## Feedback & Bug Report 72 | 73 | You can contact me via: 74 | 75 | - Twitter:[@egrcc](https://twitter.com/egrcc) 76 | - Weibo:[@egrcc](http://weibo.com/u/2948739432) 77 | - Email: [zhaolujun1994@gmail.com](mailto:zhaolujun1994@gmail.com) 78 | -------------------------------------------------------------------------------- /js/highlight/styles/arta.css: -------------------------------------------------------------------------------- 1 | /* 2 | Date: 17.V.2011 3 | Author: pumbur 4 | */ 5 | 6 | .hljs { 7 | display: block; 8 | overflow-x: auto; 9 | padding: 0.5em; 10 | background: #222; 11 | -webkit-text-size-adjust: none; 12 | } 13 | 14 | .profile .hljs-header *, 15 | .ini .hljs-title, 16 | .nginx .hljs-title { 17 | color: #fff; 18 | } 19 | 20 | .hljs-comment, 21 | .hljs-javadoc, 22 | .hljs-preprocessor, 23 | .hljs-preprocessor .hljs-title, 24 | .hljs-pragma, 25 | .hljs-shebang, 26 | .profile .hljs-summary, 27 | .diff, 28 | .hljs-pi, 29 | .hljs-doctype, 30 | .hljs-tag, 31 | .css .hljs-rule, 32 | .tex .hljs-special { 33 | color: #444; 34 | } 35 | 36 | .hljs-string, 37 | .hljs-symbol, 38 | .diff .hljs-change, 39 | .hljs-regexp, 40 | .xml .hljs-attribute, 41 | .smalltalk .hljs-char, 42 | .xml .hljs-value, 43 | .ini .hljs-value, 44 | .clojure .hljs-attribute, 45 | .coffeescript .hljs-attribute { 46 | color: #ffcc33; 47 | } 48 | 49 | .hljs-number, 50 | .hljs-addition { 51 | color: #00cc66; 52 | } 53 | 54 | .hljs-built_in, 55 | .hljs-literal, 56 | .hljs-type, 57 | .hljs-typename, 58 | .go .hljs-constant, 59 | .ini .hljs-keyword, 60 | .lua .hljs-title, 61 | .perl .hljs-variable, 62 | .php .hljs-variable, 63 | .mel .hljs-variable, 64 | .django .hljs-variable, 65 | .css .funtion, 66 | .smalltalk .method, 67 | .hljs-hexcolor, 68 | .hljs-important, 69 | .hljs-flow, 70 | .hljs-inheritance, 71 | .hljs-name, 72 | .parser3 .hljs-variable { 73 | color: #32aaee; 74 | } 75 | 76 | .hljs-keyword, 77 | .hljs-tag .hljs-title, 78 | .css .hljs-tag, 79 | .css .hljs-class, 80 | .css .hljs-id, 81 | .css .hljs-pseudo, 82 | .css .hljs-attr_selector, 83 | .hljs-winutils, 84 | .tex .hljs-command, 85 | .hljs-request, 86 | .hljs-status { 87 | color: #6644aa; 88 | } 89 | 90 | .hljs-title, 91 | .ruby .hljs-constant, 92 | .vala .hljs-constant, 93 | .hljs-parent, 94 | .hljs-deletion, 95 | .hljs-template_tag, 96 | .css .hljs-keyword, 97 | .objectivec .hljs-class .hljs-id, 98 | .smalltalk .hljs-class, 99 | .lisp .hljs-keyword, 100 | .apache .hljs-tag, 101 | .nginx .hljs-variable, 102 | .hljs-envvar, 103 | .bash .hljs-variable, 104 | .go .hljs-built_in, 105 | .vbscript .hljs-built_in, 106 | .lua .hljs-built_in, 107 | .rsl .hljs-built_in, 108 | .tail, 109 | .avrasm .hljs-label, 110 | .tex .hljs-formula, 111 | .tex .hljs-formula * { 112 | color: #bb1166; 113 | } 114 | 115 | .hljs-yardoctag, 116 | .hljs-phpdoc, 117 | .hljs-dartdoc, 118 | .profile .hljs-header, 119 | .ini .hljs-title, 120 | .apache .hljs-tag, 121 | .parser3 .hljs-title { 122 | font-weight: bold; 123 | } 124 | 125 | .coffeescript .javascript, 126 | .javascript .xml, 127 | .tex .hljs-formula, 128 | .xml .javascript, 129 | .xml .vbscript, 130 | .xml .css, 131 | .xml .hljs-cdata { 132 | opacity: 0.6; 133 | } 134 | 135 | .hljs, 136 | .hljs-subst, 137 | .diff .hljs-chunk, 138 | .css .hljs-value, 139 | .css .hljs-attribute { 140 | color: #aaa; 141 | } 142 | -------------------------------------------------------------------------------- /js/highlight/styles/obsidian.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Obsidian style 3 | * ported by Alexander Marenin (http://github.com/ioncreature) 4 | */ 5 | 6 | .hljs { 7 | display: block; 8 | overflow-x: auto; 9 | padding: 0.5em; 10 | background: #282b2e; 11 | -webkit-text-size-adjust: none; 12 | } 13 | 14 | .hljs-keyword, 15 | .hljs-literal, 16 | .hljs-change, 17 | .hljs-winutils, 18 | .hljs-flow, 19 | .nginx .hljs-title, 20 | .css .hljs-id, 21 | .tex .hljs-special { 22 | color: #93c763; 23 | } 24 | 25 | .hljs-number { 26 | color: #ffcd22; 27 | } 28 | 29 | .hljs { 30 | color: #e0e2e4; 31 | } 32 | 33 | .css .hljs-tag, 34 | .css .hljs-pseudo { 35 | color: #d0d2b5; 36 | } 37 | 38 | .hljs-attribute, 39 | .hljs .hljs-constant { 40 | color: #668bb0; 41 | } 42 | 43 | .xml .hljs-attribute { 44 | color: #b3b689; 45 | } 46 | 47 | .xml .hljs-tag .hljs-value { 48 | color: #e8e2b7; 49 | } 50 | 51 | .hljs-code, 52 | .hljs-class .hljs-title, 53 | .hljs-header { 54 | color: white; 55 | } 56 | 57 | .hljs-class, 58 | .hljs-hexcolor { 59 | color: #93c763; 60 | } 61 | 62 | .hljs-regexp { 63 | color: #d39745; 64 | } 65 | 66 | .hljs-at_rule, 67 | .hljs-at_rule .hljs-keyword { 68 | color: #a082bd; 69 | } 70 | 71 | .hljs-doctype { 72 | color: #557182; 73 | } 74 | 75 | .hljs-link_url, 76 | .hljs-tag, 77 | .hljs-tag .hljs-title, 78 | .hljs-bullet, 79 | .hljs-subst, 80 | .hljs-emphasis, 81 | .hljs-type, 82 | .hljs-preprocessor, 83 | .hljs-pragma, 84 | .ruby .hljs-class .hljs-parent, 85 | .hljs-built_in, 86 | .django .hljs-template_tag, 87 | .django .hljs-variable, 88 | .smalltalk .hljs-class, 89 | .hljs-javadoc, 90 | .django .hljs-filter .hljs-argument, 91 | .smalltalk .hljs-localvars, 92 | .smalltalk .hljs-array, 93 | .hljs-attr_selector, 94 | .hljs-pseudo, 95 | .hljs-addition, 96 | .hljs-stream, 97 | .hljs-envvar, 98 | .apache .hljs-tag, 99 | .apache .hljs-cbracket, 100 | .tex .hljs-command, 101 | .hljs-prompt, 102 | .hljs-name { 103 | color: #8cbbad; 104 | } 105 | 106 | .hljs-string { 107 | color: #ec7600; 108 | } 109 | 110 | .hljs-comment, 111 | .hljs-annotation, 112 | .hljs-blockquote, 113 | .hljs-horizontal_rule, 114 | .hljs-decorator, 115 | .hljs-pi, 116 | .hljs-deletion, 117 | .hljs-shebang, 118 | .apache .hljs-sqbracket, 119 | .tex .hljs-formula { 120 | color: #818e96; 121 | } 122 | 123 | .hljs-keyword, 124 | .hljs-literal, 125 | .css .hljs-id, 126 | .hljs-phpdoc, 127 | .hljs-dartdoc, 128 | .hljs-title, 129 | .hljs-header, 130 | .hljs-type, 131 | .vbscript .hljs-built_in, 132 | .rsl .hljs-built_in, 133 | .smalltalk .hljs-class, 134 | .diff .hljs-header, 135 | .hljs-chunk, 136 | .hljs-winutils, 137 | .bash .hljs-variable, 138 | .apache .hljs-tag, 139 | .tex .hljs-special, 140 | .hljs-request, 141 | .hljs-at_rule .hljs-keyword, 142 | .hljs-status { 143 | font-weight: bold; 144 | } 145 | 146 | .coffeescript .javascript, 147 | .javascript .xml, 148 | .tex .hljs-formula, 149 | .xml .javascript, 150 | .xml .vbscript, 151 | .xml .css, 152 | .xml .hljs-cdata { 153 | opacity: 0.5; 154 | } 155 | -------------------------------------------------------------------------------- /js/highlight/styles/xcode.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | XCode style (c) Angel Garcia 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #fff; 12 | color: black; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .hljs-javadoc { 18 | color: #006a00; 19 | } 20 | 21 | .hljs-keyword, 22 | .hljs-literal, 23 | .nginx .hljs-title { 24 | color: #aa0d91; 25 | } 26 | .method, 27 | .hljs-list .hljs-title, 28 | .hljs-tag .hljs-title, 29 | .setting .hljs-value, 30 | .hljs-winutils, 31 | .tex .hljs-command, 32 | .http .hljs-title, 33 | .hljs-request, 34 | .hljs-status, 35 | .hljs-name { 36 | color: #008; 37 | } 38 | 39 | .hljs-envvar, 40 | .tex .hljs-special { 41 | color: #660; 42 | } 43 | 44 | .hljs-string { 45 | color: #c41a16; 46 | } 47 | .hljs-tag .hljs-value, 48 | .hljs-cdata, 49 | .hljs-filter .hljs-argument, 50 | .hljs-attr_selector, 51 | .apache .hljs-cbracket, 52 | .hljs-date, 53 | .hljs-regexp { 54 | color: #080; 55 | } 56 | 57 | .hljs-sub .hljs-identifier, 58 | .hljs-pi, 59 | .hljs-tag, 60 | .hljs-tag .hljs-keyword, 61 | .hljs-decorator, 62 | .ini .hljs-title, 63 | .hljs-shebang, 64 | .hljs-prompt, 65 | .hljs-hexcolor, 66 | .hljs-rule .hljs-value, 67 | .hljs-symbol, 68 | .hljs-symbol .hljs-string, 69 | .hljs-number, 70 | .css .hljs-function, 71 | .hljs-function .hljs-title, 72 | .coffeescript .hljs-attribute { 73 | color: #1c00cf; 74 | } 75 | 76 | .hljs-class .hljs-title, 77 | .smalltalk .hljs-class, 78 | .hljs-javadoctag, 79 | .hljs-yardoctag, 80 | .hljs-phpdoc, 81 | .hljs-dartdoc, 82 | .hljs-type, 83 | .hljs-typename, 84 | .hljs-tag .hljs-attribute, 85 | .hljs-doctype, 86 | .hljs-class .hljs-id, 87 | .hljs-built_in, 88 | .setting, 89 | .hljs-params, 90 | .clojure .hljs-attribute { 91 | color: #5c2699; 92 | } 93 | 94 | .hljs-variable { 95 | color: #3f6e74; 96 | } 97 | .css .hljs-tag, 98 | .hljs-rule .hljs-property, 99 | .hljs-pseudo, 100 | .hljs-subst { 101 | color: #000; 102 | } 103 | 104 | .css .hljs-class, 105 | .css .hljs-id { 106 | color: #9b703f; 107 | } 108 | 109 | .hljs-value .hljs-important { 110 | color: #ff7700; 111 | font-weight: bold; 112 | } 113 | 114 | .hljs-rule .hljs-keyword { 115 | color: #c5af75; 116 | } 117 | 118 | .hljs-annotation, 119 | .apache .hljs-sqbracket, 120 | .nginx .hljs-built_in { 121 | color: #9b859d; 122 | } 123 | 124 | .hljs-preprocessor, 125 | .hljs-preprocessor *, 126 | .hljs-pragma { 127 | color: #643820; 128 | } 129 | 130 | .tex .hljs-formula { 131 | background-color: #eee; 132 | font-style: italic; 133 | } 134 | 135 | .diff .hljs-header, 136 | .hljs-chunk { 137 | color: #808080; 138 | font-weight: bold; 139 | } 140 | 141 | .diff .hljs-change { 142 | background-color: #bccff9; 143 | } 144 | 145 | .hljs-addition { 146 | background-color: #baeeba; 147 | } 148 | 149 | .hljs-deletion { 150 | background-color: #ffc8bd; 151 | } 152 | 153 | .hljs-comment .hljs-yardoctag { 154 | font-weight: bold; 155 | } 156 | 157 | .method .hljs-id { 158 | color: #000; 159 | } 160 | -------------------------------------------------------------------------------- /js/highlight/styles/sunburst.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Sunburst-like style (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #000; 12 | color: #f8f8f8; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .hljs-javadoc { 18 | color: #aeaeae; 19 | font-style: italic; 20 | } 21 | 22 | .hljs-keyword, 23 | .ruby .hljs-function .hljs-keyword, 24 | .hljs-request, 25 | .hljs-status, 26 | .nginx .hljs-title { 27 | color: #e28964; 28 | } 29 | 30 | .hljs-function .hljs-keyword, 31 | .hljs-sub .hljs-keyword, 32 | .method, 33 | .hljs-list .hljs-title { 34 | color: #99cf50; 35 | } 36 | 37 | .hljs-string, 38 | .hljs-tag .hljs-value, 39 | .hljs-cdata, 40 | .hljs-filter .hljs-argument, 41 | .hljs-attr_selector, 42 | .apache .hljs-cbracket, 43 | .hljs-date, 44 | .tex .hljs-command, 45 | .coffeescript .hljs-attribute, 46 | .hljs-name { 47 | color: #65b042; 48 | } 49 | 50 | .hljs-subst { 51 | color: #daefa3; 52 | } 53 | 54 | .hljs-regexp { 55 | color: #e9c062; 56 | } 57 | 58 | .hljs-title, 59 | .hljs-sub .hljs-identifier, 60 | .hljs-pi, 61 | .hljs-tag, 62 | .hljs-tag .hljs-keyword, 63 | .hljs-decorator, 64 | .hljs-shebang, 65 | .hljs-prompt { 66 | color: #89bdff; 67 | } 68 | 69 | .hljs-class .hljs-title, 70 | .hljs-type, 71 | .smalltalk .hljs-class, 72 | .hljs-javadoctag, 73 | .hljs-yardoctag, 74 | .hljs-phpdoc, 75 | .hljs-dartdoc { 76 | text-decoration: underline; 77 | } 78 | 79 | .hljs-symbol, 80 | .ruby .hljs-symbol .hljs-string, 81 | .hljs-number { 82 | color: #3387cc; 83 | } 84 | 85 | .hljs-params, 86 | .hljs-variable, 87 | .clojure .hljs-attribute { 88 | color: #3e87e3; 89 | } 90 | 91 | .css .hljs-tag, 92 | .hljs-rule .hljs-property, 93 | .hljs-pseudo, 94 | .tex .hljs-special { 95 | color: #cda869; 96 | } 97 | 98 | .css .hljs-class { 99 | color: #9b703f; 100 | } 101 | 102 | .hljs-rule .hljs-keyword { 103 | color: #c5af75; 104 | } 105 | 106 | .hljs-rule .hljs-value { 107 | color: #cf6a4c; 108 | } 109 | 110 | .css .hljs-id { 111 | color: #8b98ab; 112 | } 113 | 114 | .hljs-annotation, 115 | .apache .hljs-sqbracket, 116 | .nginx .hljs-built_in { 117 | color: #9b859d; 118 | } 119 | 120 | .hljs-preprocessor, 121 | .hljs-pragma { 122 | color: #8996a8; 123 | } 124 | 125 | .hljs-hexcolor, 126 | .css .hljs-value .hljs-number { 127 | color: #dd7b3b; 128 | } 129 | 130 | .css .hljs-function { 131 | color: #dad085; 132 | } 133 | 134 | .diff .hljs-header, 135 | .hljs-chunk, 136 | .tex .hljs-formula { 137 | background-color: #0e2231; 138 | color: #f8f8f8; 139 | font-style: italic; 140 | } 141 | 142 | .diff .hljs-change { 143 | background-color: #4a410d; 144 | color: #f8f8f8; 145 | } 146 | 147 | .hljs-addition { 148 | background-color: #253b22; 149 | color: #f8f8f8; 150 | } 151 | 152 | .hljs-deletion { 153 | background-color: #420e09; 154 | color: #f8f8f8; 155 | } 156 | 157 | .coffeescript .javascript, 158 | .javascript .xml, 159 | .tex .hljs-formula, 160 | .xml .javascript, 161 | .xml .vbscript, 162 | .xml .css, 163 | .xml .hljs-cdata { 164 | opacity: 0.5; 165 | } 166 | -------------------------------------------------------------------------------- /js/highlight/styles/darkula.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Darkula color scheme from the JetBrains family of IDEs 4 | 5 | */ 6 | 7 | 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #2b2b2b; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs, 17 | .hljs-tag, 18 | .hljs-title, 19 | .css .hljs-rule, 20 | .css .hljs-value, 21 | .aspectj .hljs-function, 22 | .css .hljs-function .hljs-preprocessor, 23 | .hljs-pragma { 24 | color: #bababa; 25 | } 26 | 27 | .hljs-strongemphasis, 28 | .hljs-strong, 29 | .hljs-emphasis { 30 | color: #a8a8a2; 31 | } 32 | 33 | .hljs-bullet, 34 | .hljs-blockquote, 35 | .hljs-horizontal_rule, 36 | .hljs-number, 37 | .hljs-regexp, 38 | .alias .hljs-keyword, 39 | .hljs-literal, 40 | .hljs-hexcolor { 41 | color: #6896ba; 42 | } 43 | 44 | .hljs-tag .hljs-value, 45 | .hljs-code, 46 | .css .hljs-class, 47 | .hljs-class .hljs-title:last-child { 48 | color: #a6e22e; 49 | } 50 | 51 | .hljs-link_url { 52 | font-size: 80%; 53 | } 54 | 55 | .hljs-emphasis, 56 | .hljs-strongemphasis, 57 | .hljs-class .hljs-title:last-child, 58 | .hljs-typename { 59 | font-style: italic; 60 | } 61 | 62 | .hljs-keyword, 63 | .ruby .hljs-class .hljs-keyword:first-child, 64 | .ruby .hljs-function .hljs-keyword, 65 | .hljs-function, 66 | .hljs-change, 67 | .hljs-winutils, 68 | .hljs-flow, 69 | .nginx .hljs-title, 70 | .tex .hljs-special, 71 | .hljs-header, 72 | .hljs-attribute, 73 | .hljs-symbol, 74 | .hljs-symbol .hljs-string, 75 | .hljs-tag .hljs-title, 76 | .hljs-value, 77 | .alias .hljs-keyword:first-child, 78 | .css .hljs-tag, 79 | .css .unit, 80 | .css .hljs-important { 81 | color: #cb7832; 82 | } 83 | 84 | .hljs-function .hljs-keyword, 85 | .hljs-class .hljs-keyword:first-child, 86 | .hljs-aspect .hljs-keyword:first-child, 87 | .hljs-constant, 88 | .hljs-typename, 89 | .css .hljs-attribute { 90 | color: #cb7832; 91 | } 92 | 93 | .hljs-variable, 94 | .hljs-params, 95 | .hljs-class .hljs-title, 96 | .hljs-aspect .hljs-title { 97 | color: #b9b9b9; 98 | } 99 | 100 | .hljs-string, 101 | .css .hljs-id, 102 | .hljs-subst, 103 | .hljs-type, 104 | .ruby .hljs-class .hljs-parent, 105 | .hljs-built_in, 106 | .django .hljs-template_tag, 107 | .django .hljs-variable, 108 | .smalltalk .hljs-class, 109 | .django .hljs-filter .hljs-argument, 110 | .smalltalk .hljs-localvars, 111 | .smalltalk .hljs-array, 112 | .hljs-attr_selector, 113 | .hljs-pseudo, 114 | .hljs-addition, 115 | .hljs-stream, 116 | .hljs-envvar, 117 | .apache .hljs-tag, 118 | .apache .hljs-cbracket, 119 | .tex .hljs-command, 120 | .hljs-prompt, 121 | .hljs-link_label, 122 | .hljs-link_url, 123 | .hljs-name { 124 | color: #e0c46c; 125 | } 126 | 127 | .hljs-comment, 128 | .hljs-javadoc, 129 | .hljs-annotation, 130 | .hljs-pi, 131 | .hljs-doctype, 132 | .hljs-deletion, 133 | .hljs-shebang, 134 | .apache .hljs-sqbracket, 135 | .tex .hljs-formula { 136 | color: #7f7f7f; 137 | } 138 | 139 | .hljs-decorator { 140 | color: #bab429; 141 | } 142 | 143 | .coffeescript .javascript, 144 | .javascript .xml, 145 | .tex .hljs-formula, 146 | .xml .javascript, 147 | .xml .vbscript, 148 | .xml .css, 149 | .xml .hljs-cdata, 150 | .xml .php, 151 | .php .xml { 152 | opacity: 0.5; 153 | } 154 | -------------------------------------------------------------------------------- /docs/Mango-Help.md: -------------------------------------------------------------------------------- 1 | 2 | # Mango Editor for Markdown 3 | 4 | ![Mango](./img/Mango1_256.png) 5 | 6 | ## What is Mango? 7 | 8 | **Mango** is a Markdown editor designed for Linux, also supports Windows and Mac OSX. It's not only supports Markdown, but also extends Markdown syntax with some nice features to help people conveniently write **mathematical formula** and **code**. 9 | 10 | **Mango** is a open source project in [Github](https://github.com/egrcc/Mango), and uses many other open source projects. For detailed information, please see **Acknowlegements** in help menu. 11 | 12 | 13 | ## What is Markdown? 14 | 15 | > Markdown is a markup language with plain text formatting syntax designed so that it can be converted to HTML and many other formats using a tool by the same name. —— [Wikipedia](http://en.wikipedia.org/wiki/Markdown) 16 | 17 | **Markdown** was created by **John Gruber**, with substantial contributions from **Aaron Swartz** in 2004 with the goal of enabling people "to write using an easy-to-read, easy-to-write plain text format, and optionally convert it to structurally valid XHTML (or HTML)”. 18 | 19 | For detailed Markdown syntax, please see **Markdown Syntax Help** in help menu. 20 | 21 | ## Main Features 22 | 23 | #### 1. Cross Platform Support 24 | 25 | **Mango** is powered by [NW.js](http://nwjs.io/), so it supports all three major operating systems: **Windows**, **Mac OS X**, and **Linux**. 26 | 27 | #### 2 . Live Preview with Scroll Sync 28 | 29 | **Mango**’s Scroll Sync accurately binds the scrollbars of the editor panel and the preview panel to ensure that you always keep an eye on the output while writing. 30 | 31 | #### 3 . Mathematics Expression 32 | 33 | With **MathJax** support you can render beautiful **LaTeX** expressions. For inline formulas, enclose the formula in `$...$`. For displayed formulas, use `$$...$$`. For example: 34 | 35 | **Pythagorean theorem**: $a^2 + b^2 = c^2$. 36 | 37 | **Normal distribution**: 38 | $$f(x, \mu, \sigma) = \frac{1}{\sigma \sqrt{2\pi} } e^{ -\frac{(x-\mu)^2}{2\sigma^2} } $$ 39 | 40 | **Maxwell's Equations**: 41 | 42 | $$ 43 | \begin{gather} 44 | \nabla \cdot \mathbf{D} = \rho_\text{f}\tag{1} \\ 45 | \nabla \cdot \mathbf{B} = 0\tag{2} \\ 46 | \nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}} {\partial t}\tag{3} \\ 47 | \nabla \times \mathbf{H} = \mathbf{J}_\text{f} + \frac{\partial \mathbf{D}} {\partial t}\tag{4} 48 | \end{gather} 49 | $$ 50 | 51 | 52 | 53 | #### 4. Syntax Highlighting 54 | 55 | You can write code like below, that will highlighted in the Live Preview: 56 | 57 | 58 | ``` python 59 | # from zhihu-python(https://github.com/egrcc/zhihu-python) 60 | 61 | from zhihu import Question 62 | 63 | url = "http://www.zhihu.com/question/24269892" 64 | question = Question(url) 65 | answers = question.get_all_answers() 66 | for answer in answers: 67 | answer.to_txt() 68 | answer.to_md() 69 | ``` 70 | 71 | #### 5. Export to Various Formats 72 | 73 | You can conveniently export your documents to PDF (shortcut: `Ctrl + E`) and HTML (shortcut: `Shift + Ctrl + E`) with beautiful theme. 74 | 75 | 76 | 77 | ## Feedback & Bug Report 78 | 79 | You can contact me via: 80 | 81 | - Twitter:[@egrcc](https://twitter.com/egrcc) 82 | - Weibo:[@egrcc](http://weibo.com/u/2948739432) 83 | - Email: [zhaolujun1994@gmail.com](mailto:zhaolujun1994@gmail.com) 84 | -------------------------------------------------------------------------------- /js/highlight/styles/monokai_sublime.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/ 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #23241f; 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs, 16 | .hljs-tag, 17 | .css .hljs-rule, 18 | .css .hljs-value, 19 | .aspectj .hljs-function, 20 | .css .hljs-function 21 | .hljs-preprocessor, 22 | .hljs-pragma { 23 | color: #f8f8f2; 24 | } 25 | 26 | .hljs-strongemphasis, 27 | .hljs-strong, 28 | .hljs-emphasis { 29 | color: #a8a8a2; 30 | } 31 | 32 | .hljs-bullet, 33 | .hljs-blockquote, 34 | .hljs-horizontal_rule, 35 | .hljs-number, 36 | .hljs-regexp, 37 | .alias .hljs-keyword, 38 | .hljs-literal, 39 | .hljs-hexcolor { 40 | color: #ae81ff; 41 | } 42 | 43 | .hljs-tag .hljs-value, 44 | .hljs-code, 45 | .hljs-title, 46 | .css .hljs-class, 47 | .hljs-class .hljs-title:last-child { 48 | color: #a6e22e; 49 | } 50 | 51 | .hljs-link_url { 52 | font-size: 80%; 53 | } 54 | 55 | .hljs-strong, 56 | .hljs-strongemphasis { 57 | font-weight: bold; 58 | } 59 | 60 | .hljs-emphasis, 61 | .hljs-strongemphasis, 62 | .hljs-class .hljs-title:last-child, 63 | .hljs-typename { 64 | font-style: italic; 65 | } 66 | 67 | .hljs-keyword, 68 | .ruby .hljs-class .hljs-keyword:first-child, 69 | .ruby .hljs-function .hljs-keyword, 70 | .hljs-function, 71 | .hljs-change, 72 | .hljs-winutils, 73 | .hljs-flow, 74 | .nginx .hljs-title, 75 | .tex .hljs-special, 76 | .hljs-header, 77 | .hljs-attribute, 78 | .hljs-symbol, 79 | .hljs-symbol .hljs-string, 80 | .hljs-tag .hljs-title, 81 | .hljs-value, 82 | .alias .hljs-keyword:first-child, 83 | .css .hljs-tag, 84 | .css .unit, 85 | .css .hljs-important { 86 | color: #f92672; 87 | } 88 | 89 | .hljs-function .hljs-keyword, 90 | .hljs-class .hljs-keyword:first-child, 91 | .hljs-aspect .hljs-keyword:first-child, 92 | .hljs-constant, 93 | .hljs-typename, 94 | .hljs-name, 95 | .css .hljs-attribute { 96 | color: #66d9ef; 97 | } 98 | 99 | .hljs-variable, 100 | .hljs-params, 101 | .hljs-class .hljs-title, 102 | .hljs-aspect .hljs-title { 103 | color: #f8f8f2; 104 | } 105 | 106 | .hljs-string, 107 | .css .hljs-id, 108 | .hljs-subst, 109 | .hljs-type, 110 | .ruby .hljs-class .hljs-parent, 111 | .hljs-built_in, 112 | .django .hljs-template_tag, 113 | .django .hljs-variable, 114 | .smalltalk .hljs-class, 115 | .django .hljs-filter .hljs-argument, 116 | .smalltalk .hljs-localvars, 117 | .smalltalk .hljs-array, 118 | .hljs-attr_selector, 119 | .hljs-pseudo, 120 | .hljs-addition, 121 | .hljs-stream, 122 | .hljs-envvar, 123 | .apache .hljs-tag, 124 | .apache .hljs-cbracket, 125 | .tex .hljs-command, 126 | .hljs-prompt, 127 | .hljs-link_label, 128 | .hljs-link_url { 129 | color: #e6db74; 130 | } 131 | 132 | .hljs-comment, 133 | .hljs-javadoc, 134 | .hljs-annotation, 135 | .hljs-decorator, 136 | .hljs-pi, 137 | .hljs-doctype, 138 | .hljs-deletion, 139 | .hljs-shebang, 140 | .apache .hljs-sqbracket, 141 | .tex .hljs-formula { 142 | color: #75715e; 143 | } 144 | 145 | .coffeescript .javascript, 146 | .javascript .xml, 147 | .tex .hljs-formula, 148 | .xml .javascript, 149 | .xml .vbscript, 150 | .xml .css, 151 | .xml .hljs-cdata, 152 | .xml .php, 153 | .php .xml { 154 | opacity: 0.5; 155 | } 156 | -------------------------------------------------------------------------------- /js/highlight/styles/default.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Original style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #f0f0f0; 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs, 16 | .hljs-subst, 17 | .hljs-tag .hljs-title, 18 | .nginx .hljs-title { 19 | color: black; 20 | } 21 | 22 | .hljs-string, 23 | .hljs-title, 24 | .hljs-constant, 25 | .hljs-parent, 26 | .hljs-tag .hljs-value, 27 | .hljs-rule .hljs-value, 28 | .hljs-preprocessor, 29 | .hljs-pragma, 30 | .hljs-name, 31 | .haml .hljs-symbol, 32 | .ruby .hljs-symbol, 33 | .ruby .hljs-symbol .hljs-string, 34 | .hljs-template_tag, 35 | .django .hljs-variable, 36 | .smalltalk .hljs-class, 37 | .hljs-addition, 38 | .hljs-flow, 39 | .hljs-stream, 40 | .bash .hljs-variable, 41 | .pf .hljs-variable, 42 | .apache .hljs-tag, 43 | .apache .hljs-cbracket, 44 | .tex .hljs-command, 45 | .tex .hljs-special, 46 | .erlang_repl .hljs-function_or_atom, 47 | .asciidoc .hljs-header, 48 | .markdown .hljs-header, 49 | .coffeescript .hljs-attribute { 50 | color: #800; 51 | } 52 | 53 | .smartquote, 54 | .hljs-comment, 55 | .hljs-annotation, 56 | .diff .hljs-header, 57 | .hljs-chunk, 58 | .asciidoc .hljs-blockquote, 59 | .markdown .hljs-blockquote { 60 | color: #888; 61 | } 62 | 63 | .hljs-number, 64 | .hljs-date, 65 | .hljs-regexp, 66 | .hljs-literal, 67 | .hljs-hexcolor, 68 | .smalltalk .hljs-symbol, 69 | .smalltalk .hljs-char, 70 | .go .hljs-constant, 71 | .hljs-change, 72 | .lasso .hljs-variable, 73 | .makefile .hljs-variable, 74 | .asciidoc .hljs-bullet, 75 | .markdown .hljs-bullet, 76 | .asciidoc .hljs-link_url, 77 | .markdown .hljs-link_url { 78 | color: #080; 79 | } 80 | 81 | .hljs-label, 82 | .hljs-javadoc, 83 | .ruby .hljs-string, 84 | .hljs-decorator, 85 | .hljs-filter .hljs-argument, 86 | .hljs-localvars, 87 | .hljs-array, 88 | .hljs-attr_selector, 89 | .hljs-important, 90 | .hljs-pseudo, 91 | .hljs-pi, 92 | .haml .hljs-bullet, 93 | .hljs-doctype, 94 | .hljs-deletion, 95 | .hljs-envvar, 96 | .hljs-shebang, 97 | .apache .hljs-sqbracket, 98 | .nginx .hljs-built_in, 99 | .tex .hljs-formula, 100 | .erlang_repl .hljs-reserved, 101 | .hljs-prompt, 102 | .asciidoc .hljs-link_label, 103 | .markdown .hljs-link_label, 104 | .vhdl .hljs-attribute, 105 | .clojure .hljs-attribute, 106 | .asciidoc .hljs-attribute, 107 | .lasso .hljs-attribute, 108 | .coffeescript .hljs-property, 109 | .hljs-phony { 110 | color: #88f; 111 | } 112 | 113 | .hljs-keyword, 114 | .hljs-id, 115 | .hljs-title, 116 | .hljs-built_in, 117 | .css .hljs-tag, 118 | .hljs-javadoctag, 119 | .hljs-phpdoc, 120 | .hljs-dartdoc, 121 | .hljs-yardoctag, 122 | .smalltalk .hljs-class, 123 | .hljs-winutils, 124 | .bash .hljs-variable, 125 | .pf .hljs-variable, 126 | .apache .hljs-tag, 127 | .hljs-type, 128 | .hljs-typename, 129 | .tex .hljs-command, 130 | .asciidoc .hljs-strong, 131 | .markdown .hljs-strong, 132 | .hljs-request, 133 | .hljs-status { 134 | font-weight: bold; 135 | } 136 | 137 | .asciidoc .hljs-emphasis, 138 | .markdown .hljs-emphasis { 139 | font-style: italic; 140 | } 141 | 142 | .nginx .hljs-built_in { 143 | font-weight: normal; 144 | } 145 | 146 | .coffeescript .javascript, 147 | .javascript .xml, 148 | .lasso .markup, 149 | .tex .hljs-formula, 150 | .xml .javascript, 151 | .xml .vbscript, 152 | .xml .css, 153 | .xml .hljs-cdata { 154 | opacity: 0.5; 155 | } 156 | -------------------------------------------------------------------------------- /js/highlight/styles/hybrid.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | vim-hybrid theme by w0ng (https://github.com/w0ng/vim-hybrid) 4 | 5 | */ 6 | 7 | /*background color*/ 8 | .hljs { 9 | display: block; 10 | overflow-x: auto; 11 | padding: 0.5em; 12 | background: #1d1f21; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | /*selection color*/ 17 | .hljs::selection, 18 | .hljs span::selection { 19 | background: #373b41; 20 | } 21 | .hljs::-moz-selection, 22 | .hljs span::-moz-selection { 23 | background: #373b41; 24 | } 25 | 26 | /*foreground color*/ 27 | .hljs, 28 | .hljs-setting .hljs-value, 29 | .hljs-expression .hljs-variable, 30 | .hljs-expression .hljs-begin-block, 31 | .hljs-expression .hljs-end-block, 32 | .hljs-class .hljs-params, 33 | .hljs-function .hljs-params, 34 | .hljs-at_rule .hljs-preprocessor { 35 | color: #c5c8c6; 36 | } 37 | 38 | /*color: fg_yellow*/ 39 | .hljs-title, 40 | .hljs-function .hljs-title, 41 | .hljs-keyword .hljs-common, 42 | .hljs-class .hljs-title, 43 | .hljs-decorator, 44 | .hljs-tag .hljs-title, 45 | .hljs-header, 46 | .hljs-sub, 47 | .hljs-function { 48 | color: #f0c674; 49 | } 50 | 51 | /*color: fg_comment*/ 52 | .hljs-comment, 53 | .hljs-javadoc, 54 | .hljs-output .hljs-value, 55 | .hljs-pi, 56 | .hljs-shebang, 57 | .hljs-doctype { 58 | color: #707880; 59 | } 60 | 61 | /*color: fg_red*/ 62 | .hljs-number, 63 | .hljs-symbol, 64 | .hljs-literal, 65 | .hljs-deletion, 66 | .hljs-link_url, 67 | .hljs-symbol .hljs-string, 68 | .hljs-argument, 69 | .hljs-hexcolor, 70 | .hljs-input .hljs-prompt, 71 | .hljs-char { 72 | color: #cc6666 73 | } 74 | 75 | /*color: fg_green*/ 76 | .hljs-string, 77 | .hljs-special, 78 | .hljs-javadoctag, 79 | .hljs-addition, 80 | .hljs-important, 81 | .hljs-tag .hljs-value, 82 | .hljs-at.rule .hljs-keyword, 83 | .hljs-regexp, 84 | .hljs-attr_selector { 85 | color: #b5bd68; 86 | } 87 | 88 | /*color: fg_purple*/ 89 | .hljs-variable, 90 | .hljs-property, 91 | .hljs-envar, 92 | .hljs-code, 93 | .hljs-expression, 94 | .hljs-localvars, 95 | .hljs-id, 96 | .hljs-variable .hljs-filter, 97 | .hljs-variable .hljs-filter .hljs-keyword, 98 | .hljs-template_tag .hljs-filter .hljs-keyword, 99 | .hljs-name { 100 | color: #b294bb; 101 | } 102 | 103 | /*color: fg_blue*/ 104 | .hljs-statement, 105 | .hljs-label, 106 | .hljs-keyword, 107 | .hljs-xmlDocTag, 108 | .hljs-function .hljs-keyword, 109 | .hljs-chunk, 110 | .hljs-cdata, 111 | .hljs-link_label, 112 | .hljs-bullet, 113 | .hljs-class .hljs-keyword, 114 | .hljs-smartquote, 115 | .hljs-method, 116 | .hljs-list .hljs-title, 117 | .hljs-tag { 118 | color: #81a2be; 119 | } 120 | 121 | /*color: fg_aqua*/ 122 | .hljs-pseudo, 123 | .hljs-exception, 124 | .hljs-annotation, 125 | .hljs-subst, 126 | .hljs-change, 127 | .hljs-cbracket, 128 | .hljs-operator, 129 | .hljs-horizontal_rule, 130 | .hljs-preprocessor .hljs-keyword, 131 | .hljs-typedef, 132 | .hljs-template_tag, 133 | .hljs-variable, 134 | .hljs-variable .hljs-filter .hljs-argument, 135 | .hljs-at_rule, 136 | .hljs-at_rule .hljs-string, 137 | .hljs-at_rule .hljs-keyword { 138 | color: #8abeb7; 139 | } 140 | 141 | 142 | /*color: fg_orange*/ 143 | .hljs-type, 144 | .hljs-typename, 145 | .hljs-inheritance .hljs-parent, 146 | .hljs-constant, 147 | .hljs-built_in, 148 | .hljs-setting, 149 | .hljs-structure, 150 | .hljs-link_reference, 151 | .hljs-attribute, 152 | .hljs-blockquote, 153 | .hljs-quoted, 154 | .hljs-class, 155 | .hljs-header { 156 | color: #de935f; 157 | } 158 | 159 | .hljs-emphasis 160 | { 161 | font-style: italic; 162 | } 163 | 164 | .hljs-strong 165 | { 166 | font-weight: bold; 167 | } 168 | 169 | 170 | 171 | 172 | -------------------------------------------------------------------------------- /js/highlight/styles/railscasts.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Railscasts-like style (c) Visoft, Inc. (Damien White) 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #232323; 12 | color: #e6e1dc; 13 | -webkit-text-size-adjust: none; 14 | } 15 | 16 | .hljs-comment, 17 | .hljs-javadoc, 18 | .hljs-shebang { 19 | color: #bc9458; 20 | font-style: italic; 21 | } 22 | 23 | .hljs-keyword, 24 | .ruby .hljs-function .hljs-keyword, 25 | .hljs-request, 26 | .hljs-status, 27 | .nginx .hljs-title, 28 | .method, 29 | .hljs-list .hljs-title { 30 | color: #c26230; 31 | } 32 | 33 | .hljs-string, 34 | .hljs-number, 35 | .hljs-regexp, 36 | .hljs-tag .hljs-value, 37 | .hljs-cdata, 38 | .hljs-filter .hljs-argument, 39 | .hljs-attr_selector, 40 | .apache .hljs-cbracket, 41 | .hljs-date, 42 | .tex .hljs-command, 43 | .asciidoc .hljs-link_label, 44 | .markdown .hljs-link_label { 45 | color: #a5c261; 46 | } 47 | 48 | .hljs-subst { 49 | color: #519f50; 50 | } 51 | 52 | .hljs-tag, 53 | .hljs-tag .hljs-keyword, 54 | .hljs-tag .hljs-title, 55 | .hljs-doctype, 56 | .hljs-sub .hljs-identifier, 57 | .hljs-pi, 58 | .input_number { 59 | color: #e8bf6a; 60 | } 61 | 62 | .hljs-identifier { 63 | color: #d0d0ff; 64 | } 65 | 66 | .hljs-class .hljs-title, 67 | .hljs-type, 68 | .smalltalk .hljs-class, 69 | .hljs-javadoctag, 70 | .hljs-yardoctag, 71 | .hljs-phpdoc, 72 | .hljs-dartdoc { 73 | text-decoration: none; 74 | } 75 | 76 | .hljs-constant, 77 | .hljs-name { 78 | color: #da4939; 79 | } 80 | 81 | 82 | .hljs-symbol, 83 | .hljs-built_in, 84 | .ruby .hljs-symbol .hljs-string, 85 | .ruby .hljs-symbol .hljs-identifier, 86 | .asciidoc .hljs-link_url, 87 | .markdown .hljs-link_url, 88 | .hljs-attribute { 89 | color: #6d9cbe; 90 | } 91 | 92 | .asciidoc .hljs-link_url, 93 | .markdown .hljs-link_url { 94 | text-decoration: underline; 95 | } 96 | 97 | 98 | 99 | .hljs-params, 100 | .hljs-variable, 101 | .clojure .hljs-attribute { 102 | color: #d0d0ff; 103 | } 104 | 105 | .css .hljs-tag, 106 | .hljs-rule .hljs-property, 107 | .hljs-pseudo, 108 | .tex .hljs-special { 109 | color: #cda869; 110 | } 111 | 112 | .css .hljs-class { 113 | color: #9b703f; 114 | } 115 | 116 | .hljs-rule .hljs-keyword { 117 | color: #c5af75; 118 | } 119 | 120 | .hljs-rule .hljs-value { 121 | color: #cf6a4c; 122 | } 123 | 124 | .css .hljs-id { 125 | color: #8b98ab; 126 | } 127 | 128 | .hljs-annotation, 129 | .apache .hljs-sqbracket, 130 | .nginx .hljs-built_in { 131 | color: #9b859d; 132 | } 133 | 134 | .hljs-preprocessor, 135 | .hljs-preprocessor *, 136 | .hljs-pragma { 137 | color: #8996a8 !important; 138 | } 139 | 140 | .hljs-hexcolor, 141 | .css .hljs-value .hljs-number { 142 | color: #a5c261; 143 | } 144 | 145 | .hljs-title, 146 | .hljs-decorator, 147 | .css .hljs-function { 148 | color: #ffc66d; 149 | } 150 | 151 | .diff .hljs-header, 152 | .hljs-chunk { 153 | background-color: #2f33ab; 154 | color: #e6e1dc; 155 | display: inline-block; 156 | width: 100%; 157 | } 158 | 159 | .diff .hljs-change { 160 | background-color: #4a410d; 161 | color: #f8f8f8; 162 | display: inline-block; 163 | width: 100%; 164 | } 165 | 166 | .hljs-addition { 167 | background-color: #144212; 168 | color: #e6e1dc; 169 | display: inline-block; 170 | width: 100%; 171 | } 172 | 173 | .hljs-deletion { 174 | background-color: #600; 175 | color: #e6e1dc; 176 | display: inline-block; 177 | width: 100%; 178 | } 179 | 180 | .coffeescript .javascript, 181 | .javascript .xml, 182 | .tex .hljs-formula, 183 | .xml .javascript, 184 | .xml .vbscript, 185 | .xml .css, 186 | .xml .hljs-cdata { 187 | opacity: 0.7; 188 | } 189 | -------------------------------------------------------------------------------- /js/highlight/styles/color-brewer.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Colorbrewer theme 4 | Original: https://github.com/mbostock/colorbrewer-theme (c) Mike Bostock 5 | Ported by Fabrício Tavares de Oliveira 6 | 7 | */ 8 | 9 | .hljs { 10 | display: block; 11 | overflow-x: auto; 12 | padding: 0.5em; 13 | background: #fff; 14 | -webkit-text-size-adjust: none; 15 | } 16 | 17 | .hljs, 18 | .hljs-subst, 19 | .hljs-tag .hljs-title, 20 | .nginx .hljs-title { 21 | color: #000; 22 | } 23 | 24 | .hljs-string, 25 | .hljs-title, 26 | .hljs-constant, 27 | .hljs-parent, 28 | .hljs-tag .hljs-value, 29 | .hljs-rule .hljs-value, 30 | .hljs-preprocessor, 31 | .hljs-pragma, 32 | .haml .hljs-symbol, 33 | .ruby .hljs-symbol, 34 | .ruby .hljs-symbol .hljs-string, 35 | .hljs-template_tag, 36 | .django .hljs-variable, 37 | .smalltalk .hljs-class, 38 | .hljs-addition, 39 | .hljs-flow, 40 | .hljs-stream, 41 | .bash .hljs-variable, 42 | .apache .hljs-tag, 43 | .apache .hljs-cbracket, 44 | .tex .hljs-command, 45 | .tex .hljs-special, 46 | .erlang_repl .hljs-function_or_atom, 47 | .asciidoc .hljs-header, 48 | .markdown .hljs-header, 49 | .coffeescript .hljs-attribute, 50 | .hljs-name { 51 | color: #756bb1; 52 | } 53 | 54 | .smartquote, 55 | .hljs-comment, 56 | .hljs-annotation, 57 | .diff .hljs-header, 58 | .hljs-chunk, 59 | .asciidoc .hljs-blockquote, 60 | .markdown .hljs-blockquote { 61 | color: #636363; 62 | } 63 | 64 | .hljs-number, 65 | .hljs-date, 66 | .hljs-regexp, 67 | .hljs-literal, 68 | .hljs-hexcolor, 69 | .smalltalk .hljs-symbol, 70 | .smalltalk .hljs-char, 71 | .go .hljs-constant, 72 | .hljs-change, 73 | .lasso .hljs-variable, 74 | .makefile .hljs-variable, 75 | .asciidoc .hljs-bullet, 76 | .markdown .hljs-bullet, 77 | .asciidoc .hljs-link_url, 78 | .markdown .hljs-link_url { 79 | color: #31a354; 80 | } 81 | 82 | .hljs-label, 83 | .hljs-javadoc, 84 | .ruby .hljs-string, 85 | .hljs-decorator, 86 | .hljs-filter .hljs-argument, 87 | .hljs-localvars, 88 | .hljs-array, 89 | .hljs-attr_selector, 90 | .hljs-important, 91 | .hljs-pseudo, 92 | .hljs-pi, 93 | .haml .hljs-bullet, 94 | .hljs-doctype, 95 | .hljs-deletion, 96 | .hljs-envvar, 97 | .hljs-shebang, 98 | .apache .hljs-sqbracket, 99 | .nginx .hljs-built_in, 100 | .hljs-list .hljs-built_in, 101 | .tex .hljs-formula, 102 | .erlang_repl .hljs-reserved, 103 | .hljs-prompt, 104 | .asciidoc .hljs-link_label, 105 | .markdown .hljs-link_label, 106 | .vhdl .hljs-attribute, 107 | .clojure .hljs-attribute, 108 | .asciidoc .hljs-attribute, 109 | .lasso .hljs-attribute, 110 | .coffeescript .hljs-property, 111 | .hljs-phony { 112 | color: #88f; 113 | } 114 | 115 | 116 | 117 | .hljs-keyword, 118 | .hljs-id, 119 | .hljs-title, 120 | .hljs-built_in, 121 | .css .hljs-tag, 122 | .hljs-javadoctag, 123 | .hljs-phpdoc, 124 | .hljs-dartdoc, 125 | .hljs-yardoctag, 126 | .smalltalk .hljs-class, 127 | .hljs-winutils, 128 | .bash .hljs-variable, 129 | .apache .hljs-tag, 130 | .hljs-type, 131 | .hljs-typename, 132 | .tex .hljs-command, 133 | .asciidoc .hljs-strong, 134 | .markdown .hljs-strong, 135 | .hljs-request, 136 | .hljs-status { 137 | color: #3182bd; 138 | } 139 | 140 | .asciidoc .hljs-emphasis, 141 | .markdown .hljs-emphasis { 142 | font-style: italic; 143 | } 144 | 145 | .nginx .hljs-built_in { 146 | font-weight: normal; 147 | } 148 | 149 | .coffeescript .javascript, 150 | .javascript .xml, 151 | .lasso .markup, 152 | .tex .hljs-formula, 153 | .xml .javascript, 154 | .xml .vbscript, 155 | .xml .css, 156 | .xml .hljs-cdata { 157 | opacity: 0.5; 158 | } 159 | 160 | .css .hljs-attribute, 161 | .html .hljs-attribute { 162 | color: #e6550d; 163 | } 164 | 165 | .css .hljs-class, 166 | .html .hljs-tag, 167 | .html .hljs-title { 168 | color: #3182bd; 169 | } 170 | -------------------------------------------------------------------------------- /js/highlight/README.ru.md: -------------------------------------------------------------------------------- 1 | # Highlight.js 2 | 3 | Highlight.js — это подсветчик синтаксиса, написанный на JavaScript. Он работает 4 | и в браузере, и на сервере. Он работает с практически любой HTML разметкой, не 5 | зависит от каких-либо фреймворков и умеет автоматически определять язык. 6 | 7 | 8 | ## Начало работы 9 | 10 | Минимум, что нужно сделать для использования highlight.js на веб-странице — это 11 | подключить библиотеку, CSS-стили и вызывать [`initHighlightingOnLoad`][1]: 12 | 13 | ```html 14 | 15 | 16 | 17 | ``` 18 | 19 | Библиотека найдёт и раскрасит код внутри тегов `
`, попытавшись
 20 | автоматически определить язык. Когда автоопределение не срабатывает, можно явно
 21 | указать язык в атрибуте class:
 22 | 
 23 | ```html
 24 | 
...
25 | ``` 26 | 27 | Список поддерживаемых классов языков доступен в [справочнике по классам][8]. 28 | Класс также можно предваоить префиксами `language-` или `lang-`. 29 | 30 | Чтобы отключить подсветку для какого-то блока, используйте класс `nohighlight`: 31 | 32 | ```html 33 |
...
34 | ``` 35 | 36 | ## Инициализация вручную 37 | 38 | Чтобы иметь чуть больше контроля за инициализацией подсветки, вы можете 39 | использовать функции [`highlightBlock`][2] и [`configure`][3]. Таким образом 40 | можно управлять тем, *что* подсвечивать и *когда*. 41 | 42 | Вот пример инициализация, эквивалентной вызову [`initHighlightingOnLoad`][1], но 43 | с использованием jQuery: 44 | 45 | ```javascript 46 | $(document).ready(function() { 47 | $('pre code').each(function(i, block) { 48 | hljs.highlightBlock(block); 49 | }); 50 | }); 51 | ``` 52 | 53 | Вы можете использовать любые теги разметки вместо `
`. Если
 54 | используете контейнер, не сохраняющий переводы строк, вам нужно сказать
 55 | highlight.js использовать для них тег `
`: 56 | 57 | ```javascript 58 | hljs.configure({useBR: true}); 59 | 60 | $('div.code').each(function(i, block) { 61 | hljs.highlightBlock(block); 62 | }); 63 | ``` 64 | 65 | Другие опции можно найти в документации функции [`configure`][3]. 66 | 67 | 68 | ## Установка библиотеки 69 | 70 | Highlight.js можно использовать в браузере прямо с CDN хостинга или скачать 71 | индивидуальную сборку, а также установив модуль на сервере. На 72 | [страница загрузки][4] подробно описаны все варианты. 73 | 74 | Обратите внимание, что библиотека не предназначена для использования в виде 75 | исходного кода на GitHub, а требует отдельной сборки. Если вам не подходит ни 76 | один из готовых вариантов, читайте [документацию по сборке][5]. 77 | 78 | 79 | ## Лицензия 80 | 81 | Highlight.js распространяется под лицензией BSD. Подробнее читайте файл 82 | [LICENSE][10]. 83 | 84 | 85 | ## Ссылки 86 | 87 | Официальный сайт билиотеки расположен по адресу . 88 | 89 | Более подробная документация по API и другим темам расположена на 90 | . 91 | 92 | Авторы и контрибьютора перечислена в файле [AUTHORS.ru.txt][9] file. 93 | 94 | [1]: http://highlightjs.readthedocs.org/en/latest/api.html#inithighlightingonload 95 | [2]: http://highlightjs.readthedocs.org/en/latest/api.html#highlightblock-block 96 | [3]: http://highlightjs.readthedocs.org/en/latest/api.html#configure-options 97 | [4]: https://highlightjs.org/download/ 98 | [5]: http://highlightjs.readthedocs.org/en/latest/building-testing.html 99 | [8]: http://highlightjs.readthedocs.org/en/latest/css-classes-reference.html 100 | [9]: https://github.com/isagalaev/highlight.js/blob/master/AUTHORS.ru.txt 101 | [10]: https://github.com/isagalaev/highlight.js/blob/master/LICENSE 102 | -------------------------------------------------------------------------------- /js/highlight/README.md: -------------------------------------------------------------------------------- 1 | # Highlight.js 2 | 3 | [![Build Status](https://travis-ci.org/isagalaev/highlight.js.svg?branch=master)](https://travis-ci.org/isagalaev/highlight.js) 4 | 5 | Highlight.js is a syntax highlighter written in JavaScript. It works in the 6 | browser as well as on the server. It works with pretty much any markup, 7 | doesn’t depend on any framework and has automatic language detection. 8 | 9 | 10 | ## Getting Started 11 | 12 | The bare minimum for using highlight.js on a web page is linking to the library 13 | along with one of the styles and calling [`initHighlightingOnLoad`][1]: 14 | 15 | ```html 16 | 17 | 18 | 19 | ``` 20 | 21 | This will find and highlight code inside of `
` tags; it tries to detect
 22 | the language automatically. If automatic detection doesn’t work for you, you can
 23 | specify the language in the `class` attribute:
 24 | 
 25 | ```html
 26 | 
...
27 | ``` 28 | 29 | The list of supported language classes is available in the [class reference][8]. 30 | Classes can also be prefixed with either `language-` or `lang-`. 31 | 32 | To disable highlighting altogether use the `nohighlight` class: 33 | 34 | ```html 35 |
...
36 | ``` 37 | 38 | ## Custom Initialization 39 | 40 | When you need a bit more control over the initialization of 41 | highlight.js, you can use the [`highlightBlock`][2] and [`configure`][3] 42 | functions. This allows you to control *what* to highlight and *when*. 43 | 44 | Here’s an equivalent way to calling [`initHighlightingOnLoad`][1] using jQuery: 45 | 46 | ```javascript 47 | $(document).ready(function() { 48 | $('pre code').each(function(i, block) { 49 | hljs.highlightBlock(block); 50 | }); 51 | }); 52 | ``` 53 | 54 | You can use any tags instead of `
` to mark up your code. If you don't
 55 | use a container that preserve line breaks you will need to configure
 56 | highlight.js to use the `
` tag: 57 | 58 | ```javascript 59 | hljs.configure({useBR: true}); 60 | 61 | $('div.code').each(function(i, block) { 62 | hljs.highlightBlock(block); 63 | }); 64 | ``` 65 | 66 | For other options refer to the documentation for [`configure`][3]. 67 | 68 | 69 | ## Getting the Library 70 | 71 | You can get highlight.js as a hosted or custom-build browser script or as a 72 | server module. Head over to the [download page][4] for all the options. 73 | 74 | **Note:** the library is not supposed to work straight from the source on 75 | GitHub; it requires building. If none of the pre-packaged options work for you 76 | refer to the [building documentation][5]. 77 | 78 | 79 | ## License 80 | 81 | Highlight.js is released under the BSD License. See [LICENSE][10] file for 82 | details. 83 | 84 | 85 | ## Links 86 | 87 | The official site for the library is at . 88 | 89 | Further in-depth documentation for the API and other topics is at 90 | . 91 | 92 | Authors and contributors are listed in the [AUTHORS.en.txt][9] file. 93 | 94 | [1]: http://highlightjs.readthedocs.org/en/latest/api.html#inithighlightingonload 95 | [2]: http://highlightjs.readthedocs.org/en/latest/api.html#highlightblock-block 96 | [3]: http://highlightjs.readthedocs.org/en/latest/api.html#configure-options 97 | [4]: https://highlightjs.org/download/ 98 | [5]: http://highlightjs.readthedocs.org/en/latest/building-testing.html 99 | [8]: http://highlightjs.readthedocs.org/en/latest/css-classes-reference.html 100 | [9]: https://github.com/isagalaev/highlight.js/blob/master/AUTHORS.en.txt 101 | [10]: https://github.com/isagalaev/highlight.js/blob/master/LICENSE 102 | -------------------------------------------------------------------------------- /js/main.js: -------------------------------------------------------------------------------- 1 | /** 2 | ;!!!!!!!!!!!!!!!!!!!!; 3 | !!!!!!!!!!!!!!ooooo!!!!!!!!!!!!! 4 | !!!!!!!!oooooooooooooooooooooooo!!!!!!!! 5 | !!!!!!oooooooooooooooooooooooooooooooooo!!!!!! 6 | !!!!!!oooooooooooooooooooooooooooooooooooooooo!!!!!! 7 | !!!!!oooooooooooooooooooooooooooooooooooooooooooooo!!!!! 8 | !!!!!oooooooooooooooooooooooooooooooooooooooooooooooooo!!!!! 9 | ;!!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!!! 10 | !!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!! 11 | !!!!ooooooooooooo oooooooooooooooooooooooooooooooooooooooooo!!!! 12 | !!!oooooooooooooooo ooooooooooooooooooooooooooooooooooooooooooo!!!; 13 | !!!oooooooooooooooooo ooooooooooooooooooooooo oooooooooooooo!!!; 14 | !!!ooooooooooooooooooo ooooooooooooooooooooooo ooooooooooooooo!!! 15 | !!!!oooooooooooooooooooo ooooooooooooooooooooo oooooooooooooooo!!! 16 | ;!!!ooooooooooooooooooooo! ooooooooooooooooooo! oooooooooooooooo!!!! 17 | !!!oooooooooooooooooooooo ooooooooooooooooooo o ooooooooooooooooo!!! 18 | !!!ooooooooooooooooooooo; ooooooooooooooooo ; oooooooooooooooooo!!!; 19 | !!!!ooooooooooooooooooooo ; !oooooooooooooo! o oooooooooooooooooo!!!! 20 | !!!!oooooooooooooooooooo o ooooooooooooo oo ooooooooooooooooooo!!! 21 | !!!ooooooooooooooooooooo oo ooooooooooo ooo ooooooooooooooooooo!!! 22 | !!!oooooooooooooooooooo oooo ooooooooo ;ooo! ;ooooooooooooooooooo!!! 23 | !!!!ooooooooooooooooooo ooooo oooooo ooooo oooooooooooooooooooo!!! 24 | ;!!!oooooooooooooooooo ;oooooo o oooooo ooooooooooooooooooo!!!! 25 | !!!oooooooooooooooooo oooooooo oooooooo ooooooooooooooooooo!!! 26 | !!!!oooooooooooooooo oooooooooo !oooooooooo ooooooooooooooooooo!!! 27 | !!!oooooooooooooooo oooooooooooooooooooooooooo! !oooooooooooooooooo!!! 28 | !!!!oooooooooooooo oooooooooooooooooooooooooo oooooooooooooooooo!!!! 29 | !!!!ooooooooooooo oooooooooooooooooooooooooo ;oooooooooooooooo!!!! 30 | !!!!oooooooooooo ooooooooooooooooooooooooo; ooooooooooooooo!!!! 31 | !!!!ooooooooooooooooooooooooooooooooooooooooooo ooooooooooooo!!!! 32 | !!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!! 33 | !!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!!; 34 | !!!!!ooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!! 35 | !!!!!oooooooooooooooooooooooooooooooooooooooooooooooo!!!!! 36 | !!!!!oooooooooooooooooooooooooooooooooooooooooooo!!!!! 37 | !!!!!!oooooooooooooooooooooooooooooooooooooo!!!!!! 38 | !!!!!!!oooooooooooooooooooooooooooooo!!!!!!! 39 | ;!!!!!!!!!ooooooooooooooooooo!!!!!!!!! 40 | !!!!!!!!!!!!!!!!!!!!!!!!!!!! 41 | ;!!!!!!!!!!!!! 42 | **/ 43 | 44 | function init(){ 45 | // var menu = require("./js/menu.js"); 46 | initMenu(); 47 | 48 | global.$(global.window.document).ready(function(){ 49 | // var editor = require("./js/editor.js"); 50 | if(global.gui.App.argv.length > 0){ 51 | loadFile(global.gui.App.argv[0]); 52 | } 53 | var textEditor = global.$('#editor'); 54 | textEditor.bind('input propertychange', function() { 55 | reload(); 56 | }); 57 | tabOverride.set(global.window.document.getElementsByTagName('textarea')); 58 | }); 59 | } -------------------------------------------------------------------------------- /js/taboverride/taboverride.min.js: -------------------------------------------------------------------------------- 1 | /*! taboverride v4.0.2 | https://github.com/wjbryant/taboverride 2 | (c) 2014 Bill Bryant | http://opensource.org/licenses/mit */ 3 | !function(a){"use strict";var b;"object"==typeof exports?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):(b=window.tabOverride={},a(b))}(function(a){"use strict";function b(a,b){var c,d,e,f=["alt","ctrl","meta","shift"],g=a.length,h=!0;for(c=0;g>c;c+=1)if(!b[a[c]]){h=!1;break}if(h)for(c=0;cd;d+=1)if(e===a[d]){h=!0;break}}else h=!1;if(!h)break}return h}function c(a,c){return a===q&&b(s,c)}function d(a,c){return a===r&&b(t,c)}function e(a,b){return function(c,d){var e,f="";if(arguments.length){if("number"==typeof c&&(a(c),b.length=0,d&&d.length))for(e=0;e1?(i=f.slice(0,l).split(m).length-1,j=t.split(m).length-1):i=j=0}if(E===q||E===r)if(b=p,e=b.length,y=0,z=0,A=0,l!==s&&-1!==t.indexOf("\n"))if(w=0===l||"\n"===f.charAt(l-1)?l:f.lastIndexOf("\n",l-1)+1,s===f.length||"\n"===f.charAt(s)?x=s:"\n"===f.charAt(s-1)?x=s-1:(x=f.indexOf("\n",s),-1===x&&(x=f.length)),c(E,a))y=1,D.value=f.slice(0,w)+b+f.slice(w,x).replace(/\n/g,function(){return y+=1,"\n"+b})+f.slice(x),g?(g.collapse(),g.moveEnd(F,s+y*e-j-i),g.moveStart(F,l+e-i),g.select()):(D.selectionStart=l+e,D.selectionEnd=s+y*e,D.scrollTop=k);else{if(!d(E,a))return;0===f.slice(w).indexOf(b)&&(w===l?t=t.slice(e):A=e,z=e),D.value=f.slice(0,w)+f.slice(w+A,l)+t.replace(new RegExp("\n"+b,"g"),function(){return y+=1,"\n"})+f.slice(s),g?(g.collapse(),g.moveEnd(F,s-z-y*e-j-i),g.moveStart(F,l-A-i),g.select()):(D.selectionStart=l-A,D.selectionEnd=s-z-y*e)}else if(c(E,a))g?(g.text=b,g.select()):(D.value=f.slice(0,l)+b+f.slice(s),D.selectionEnd=D.selectionStart=l+e,D.scrollTop=k);else{if(!d(E,a))return;0===f.slice(l-e).indexOf(b)&&(D.value=f.slice(0,l-e)+f.slice(l),g?(g.move(F,l-e-i),g.select()):(D.selectionEnd=D.selectionStart=l-e,D.scrollTop=k))}else if(u){if(0===l||"\n"===f.charAt(l-1))return void(v=!0);if(w=f.lastIndexOf("\n",l-1)+1,x=f.indexOf("\n",l),-1===x&&(x=f.length),B=f.slice(w,x).match(/^[ \t]*/)[0],C=B.length,w+C>l)return void(v=!0);g?(g.text="\n"+B,g.select()):(D.value=f.slice(0,l)+"\n"+B+f.slice(s),D.selectionEnd=D.selectionStart=l+n+C,D.scrollTop=k)}return a.preventDefault?void a.preventDefault():(a.returnValue=!1,!1)}}function g(a){a=a||event;var b=a.keyCode;if(c(b,a)||d(b,a)||13===b&&u&&!v){if(!a.preventDefault)return a.returnValue=!1,!1;a.preventDefault()}}function h(a,b){var c,d=x[a]||[],e=d.length;for(c=0;e>c;c+=1)d[c].apply(null,b)}function i(a){function b(b){for(c=0;f>c;c+=1)b(a[c].type,a[c].handler)}var c,d,e,f=a.length;return o.addEventListener?(d=function(a){b(function(b,c){a.removeEventListener(b,c,!1)})},e=function(a){d(a),b(function(b,c){a.addEventListener(b,c,!1)})}):o.attachEvent&&(d=function(a){b(function(b,c){a.detachEvent("on"+b,c)})},e=function(a){d(a),b(function(b,c){a.attachEvent("on"+b,c)})}),{add:e,remove:d}}function j(a){h("addListeners",[a]),l.add(a)}function k(a){h("removeListeners",[a]),l.remove(a)}var l,m,n,o=window.document,p=" ",q=9,r=9,s=[],t=["shiftKey"],u=!0,v=!1,w=o.createElement("textarea"),x={};l=i([{type:"keydown",handler:f},{type:"keypress",handler:g}]),w.value="\n",m=w.value,n=m.length,w=null,a.utils={executeExtensions:h,isValidModifierKeyCombo:b,createListeners:i,addListeners:j,removeListeners:k},a.handlers={keydown:f,keypress:g},a.addExtension=function(a,b){return a&&"string"==typeof a&&"function"==typeof b&&(x[a]||(x[a]=[]),x[a].push(b)),this},a.set=function(a,b){var c,d,e,f,g,i,l;if(a)for(c=arguments.length<2||b,d=a,e=d.length,"number"!=typeof e&&(d=[d],e=1),c?(f=j,g="true"):(f=k,g=""),i=0;e>i;i+=1)l=d[i],l&&l.nodeName&&"textarea"===l.nodeName.toLowerCase()&&(h("set",[l,c]),l.setAttribute("data-taboverride-enabled",g),f(l));return this},a.tabSize=function(a){var b;if(arguments.length){if(a&&"number"==typeof a&&a>0)for(p="",b=0;a>b;b+=1)p+=" ";else p=" ";return this}return" "===p?0:p.length},a.autoIndent=function(a){return arguments.length?(u=a?!0:!1,this):u},a.tabKey=e(function(a){return arguments.length?void(q=a):q},s),a.untabKey=e(function(a){return arguments.length?void(r=a):r},t)}); 4 | //# sourceMappingURL=taboverride.min.js.map -------------------------------------------------------------------------------- /docs/Acknowlegements.md: -------------------------------------------------------------------------------- 1 | # Acknowlegements 2 | 3 | #### Thanks to the following open source projects: 4 | 5 | ----------- 6 | 7 | #### [NW.js](http://nwjs.io) by Roger Wang (MIT license) 8 | 9 | **Mango is powered by NW.js**. 10 | 11 | **NW.js** is an app runtime based on `Chromium` and `node.js`. You can write native apps in HTML and JavaScript with NW.js. It also lets you call Node.js modules directly from the DOM and enables a new way of writing native applications with all Web technologies. 12 | 13 | ----------- 14 | 15 | #### [markdown-editor](https://github.com/dukeofharen/markdown-editor) by Duco Winterwerp (MIT license) 16 | 17 | **Mango is based on this project**. 18 | 19 | It's a very simple Markdown editor created with **Node Webkit(NW.js)**. And thanks Winterwerp's tutorial article: [Node Webkit (NW.js) tutorial: creating a Markdown editor](http://duco.cc/node-webkit-tutorial-creating-a-markdown-editor.html). I learned the fundamental idea of how to implement a markdown editor from this tutorial. 20 | 21 | 22 | ----------- 23 | 24 | #### [marked](https://github.com/chjj/marked) by Christopher Jeffrey (MIT license) 25 | 26 | **Mango uses marked as markdown parser.** 27 | 28 | **marked** is a full-featured markdown parser and compiler, written in `JavaScript`. Built for speed. 29 | 30 | ----------- 31 | 32 | #### [MathJax](https://www.mathjax.org/) by MathJax Team (Apache license) 33 | 34 | **Mango uses MathJax to display LaTeX mathematical expressions.** 35 | 36 | **MathJax** is a cross-browser JavaScript library that displays mathematical notation in web browsers, using MathML, LaTeX and ASCIIMathML markup. 37 | 38 | The MathJax team is [Davide Cervone](https://github.com/dpvc), [Volker Sorge](https://github.com/zorkow), [Christian Perfect](https://github.com/christianp), and [Peter Krautzberger](https://github.com/pkra) with support by the staff at AMS and SIAM. 39 | 40 | ----------- 41 | 42 | #### [markdown-mathjax](https://github.com/kerzol/markdown-mathjax) by Sergey Kirgizov 43 | 44 | **Mango uses the same method with markdown-mathjax to make MathJax work well in markdown.** 45 | 46 | **markdown-mathjax** is a live markdown editor based on `MathJax` and `Marked`. 47 | 48 | ----------- 49 | 50 | #### [Highlight.js](https://highlightjs.org/) by Ivan Sagalaev (BSD license) 51 | 52 | **Mango uses Highlight.js as syntax highlighter.** 53 | 54 | **Highlight.js** is a syntax highlighter written in `JavaScript`. It works in the browser as well as on the server. It works with pretty much any markup, doesn’t depend on any framework and has automatic language detection. 55 | 56 | ----------- 57 | 58 | #### [phantom-html2pdf](https://github.com/bauhausjs/phantom-html2pdf) by Eugene Terehov 59 | 60 | **Mango uses it to generate PDFs from HTML.** 61 | 62 | **phantom-html2pdf** is a Simple and lightweight HTML to PDF conversion using `Node` and `PhantomJS`. 63 | 64 | ----------- 65 | 66 | #### [PhantomJS](http://phantomjs.org/) by Ariya Hidayat (BSD license) 67 | 68 | **phantom-html2pdf is based on PhantomJS.** 69 | 70 | **PhantomJS** is a headless WebKit scriptable with a JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG. 71 | 72 | ----------- 73 | 74 | 75 | #### [Bootbox.js](http://bootboxjs.com/) by Nick Payne (MIT license) 76 | 77 | **Mango uses Bootbox.js to create beautiful dialog.** 78 | 79 | **Bootbox.js** is a small JavaScript library which allows you to create programmatic dialog boxes using `Bootstrap` modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers. 80 | 81 | 82 | ----------- 83 | 84 | 85 | ####[Request](https://github.com/request/request) by Mikeal Rogers (Apache license) 86 | 87 | **Mango uses Request to make HTTP requests.** 88 | 89 | **Request** is a simplified HTTP request client. It's designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default. 90 | 91 | ----------- 92 | 93 | #### [Bootstrap](http://getbootstrap.com/) by Mark Otto & Jacob Thornton (MIT license) 94 | 95 | **Bootbox.js stand on the shoulder of Bootstrap.** 96 | 97 | **Bootstrap** is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web. 98 | 99 | 100 | ----------- 101 | 102 | 103 | #### [jQuery](http://jquery.com/) by John Resig (MIT license) 104 | 105 | **jQuery is widely used in many places of Mango.** 106 | 107 | **jQuery** is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. -------------------------------------------------------------------------------- /js/sync.js: -------------------------------------------------------------------------------- 1 | /* 2 | ;!!!!!!!!!!!!!!!!!!!!; 3 | !!!!!!!!!!!!!!ooooo!!!!!!!!!!!!! 4 | !!!!!!!!oooooooooooooooooooooooo!!!!!!!! 5 | !!!!!!oooooooooooooooooooooooooooooooooo!!!!!! 6 | !!!!!!oooooooooooooooooooooooooooooooooooooooo!!!!!! 7 | !!!!!oooooooooooooooooooooooooooooooooooooooooooooo!!!!! 8 | !!!!!oooooooooooooooooooooooooooooooooooooooooooooooooo!!!!! 9 | ;!!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!!! 10 | !!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!! 11 | !!!!ooooooooooooo oooooooooooooooooooooooooooooooooooooooooo!!!! 12 | !!!oooooooooooooooo ooooooooooooooooooooooooooooooooooooooooooo!!!; 13 | !!!oooooooooooooooooo ooooooooooooooooooooooo oooooooooooooo!!!; 14 | !!!ooooooooooooooooooo ooooooooooooooooooooooo ooooooooooooooo!!! 15 | !!!!oooooooooooooooooooo ooooooooooooooooooooo oooooooooooooooo!!! 16 | ;!!!ooooooooooooooooooooo! ooooooooooooooooooo! oooooooooooooooo!!!! 17 | !!!oooooooooooooooooooooo ooooooooooooooooooo o ooooooooooooooooo!!! 18 | !!!ooooooooooooooooooooo; ooooooooooooooooo ; oooooooooooooooooo!!!; 19 | !!!!ooooooooooooooooooooo ; !oooooooooooooo! o oooooooooooooooooo!!!! 20 | !!!!oooooooooooooooooooo o ooooooooooooo oo ooooooooooooooooooo!!! 21 | !!!ooooooooooooooooooooo oo ooooooooooo ooo ooooooooooooooooooo!!! 22 | !!!oooooooooooooooooooo oooo ooooooooo ;ooo! ;ooooooooooooooooooo!!! 23 | !!!!ooooooooooooooooooo ooooo oooooo ooooo oooooooooooooooooooo!!! 24 | ;!!!oooooooooooooooooo ;oooooo o oooooo ooooooooooooooooooo!!!! 25 | !!!oooooooooooooooooo oooooooo oooooooo ooooooooooooooooooo!!! 26 | !!!!oooooooooooooooo oooooooooo !oooooooooo ooooooooooooooooooo!!! 27 | !!!oooooooooooooooo oooooooooooooooooooooooooo! !oooooooooooooooooo!!! 28 | !!!!oooooooooooooo oooooooooooooooooooooooooo oooooooooooooooooo!!!! 29 | !!!!ooooooooooooo oooooooooooooooooooooooooo ;oooooooooooooooo!!!! 30 | !!!!oooooooooooo ooooooooooooooooooooooooo; ooooooooooooooo!!!! 31 | !!!!ooooooooooooooooooooooooooooooooooooooooooo ooooooooooooo!!!! 32 | !!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!! 33 | !!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!!; 34 | !!!!!ooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!! 35 | !!!!!oooooooooooooooooooooooooooooooooooooooooooooooo!!!!! 36 | !!!!!oooooooooooooooooooooooooooooooooooooooooooo!!!!! 37 | !!!!!!oooooooooooooooooooooooooooooooooooooo!!!!!! 38 | !!!!!!!oooooooooooooooooooooooooooooo!!!!!!! 39 | ;!!!!!!!!!ooooooooooooooooooo!!!!!!!!! 40 | !!!!!!!!!!!!!!!!!!!!!!!!!!!! 41 | ;!!!!!!!!!!!!! 42 | */ 43 | 44 | fs = require('fs'); 45 | crypto = require('crypto'); 46 | Evernote = require('evernote').Evernote; 47 | 48 | 49 | var dev_tokens = ""; 50 | 51 | var authToken = dev_tokens; 52 | 53 | var client = new Evernote.Client({token: authToken, sandbox: true}); 54 | 55 | 56 | function sync() { 57 | var noteStore = client.getNoteStore(); 58 | 59 | // List all of the notebooks in the user's account 60 | var notebooks = noteStore.listNotebooks(function(err, notebooks) { 61 | console.log("Found " + notebooks.length + " notebooks:"); 62 | for (var i in notebooks) { 63 | console.log(" * " + notebooks[i].name); 64 | } 65 | }); 66 | 67 | var note = new Evernote.Note(); 68 | note.title = "Test note from Mango"; 69 | note.content = ''; 70 | note.content += ''; 71 | note.content += 'Here is the Evernote logo:
'; 72 | // note.content += ''; 73 | note.content += '
'; 74 | noteStore.createNote(note, function(err, createdNote) { 75 | console.log(); 76 | console.log("Creating a new note in the default notebook"); 77 | console.log(); 78 | console.log("Successfully created a new note with GUID: " + createdNote.guid); 79 | }); 80 | } 81 | 82 | 83 | // To create a new note, simply create a new Note object and fill in 84 | // attributes such as the note's title. 85 | 86 | 87 | // To include an attachment such as an image in a note, first create a Resource 88 | // for the attachment. At a minimum, the Resource contains the binary attachment 89 | // data, an MD5 hash of the binary data, and the attachment MIME type. 90 | // It can also include attributes such as filename and location. 91 | // var image = fs.readFileSync('enlogo.png'); 92 | // var hash = image.toString('base64'); 93 | 94 | // var data = new Evernote.Data(); 95 | // data.size = image.length; 96 | // data.bodyHash = hash; 97 | // data.body = image; 98 | 99 | // resource = new Evernote.Resource(); 100 | // resource.mime = 'image/png'; 101 | // resource.data = data; 102 | 103 | // Now, add the new Resource to the note's list of resources 104 | // note.resources = [resource]; 105 | 106 | // To display the Resource as part of the note's content, include an 107 | // tag in the note's ENML content. The en-media tag identifies the corresponding 108 | // Resource using the MD5 hash. 109 | // var md5 = crypto.createHash('md5'); 110 | // md5.update(image); 111 | // hashHex = md5.digest('hex'); 112 | 113 | // The content of an Evernote note is represented using Evernote Markup Language 114 | // (ENML). The full ENML specification can be found in the Evernote API Overview 115 | // at http://dev.evernote.com/documentation/cloud/chapters/ENML.php 116 | 117 | 118 | // Finally, send the new note to Evernote using the createNote method 119 | // The new Note object that is returned will contain server-generated 120 | // attributes such as the new note's unique GUID. 121 | 122 | -------------------------------------------------------------------------------- /css/preview.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-license.org/ 4 | 5 | */ 6 | 7 | .hljs { 8 | display: block; 9 | overflow-x: auto; 10 | padding: 0.5em; 11 | background: #23241f; 12 | -webkit-text-size-adjust: none; 13 | } 14 | 15 | .hljs, 16 | .hljs-tag, 17 | .css .hljs-rule, 18 | .css .hljs-value, 19 | .aspectj .hljs-function, 20 | .css .hljs-function 21 | .hljs-preprocessor, 22 | .hljs-pragma { 23 | color: #f8f8f2; 24 | } 25 | 26 | .hljs-strongemphasis, 27 | .hljs-strong, 28 | .hljs-emphasis { 29 | color: #a8a8a2; 30 | } 31 | 32 | .hljs-bullet, 33 | .hljs-blockquote, 34 | .hljs-horizontal_rule, 35 | .hljs-number, 36 | .hljs-regexp, 37 | .alias .hljs-keyword, 38 | .hljs-literal, 39 | .hljs-hexcolor { 40 | color: #ae81ff; 41 | } 42 | 43 | .hljs-tag .hljs-value, 44 | .hljs-code, 45 | .hljs-title, 46 | .css .hljs-class, 47 | .hljs-class .hljs-title:last-child { 48 | color: #a6e22e; 49 | } 50 | 51 | .hljs-link_url { 52 | font-size: 80%; 53 | } 54 | 55 | .hljs-strong, 56 | .hljs-strongemphasis { 57 | font-weight: bold; 58 | } 59 | 60 | .hljs-emphasis, 61 | .hljs-strongemphasis, 62 | .hljs-class .hljs-title:last-child, 63 | .hljs-typename { 64 | font-style: italic; 65 | } 66 | 67 | .hljs-keyword, 68 | .ruby .hljs-class .hljs-keyword:first-child, 69 | .ruby .hljs-function .hljs-keyword, 70 | .hljs-function, 71 | .hljs-change, 72 | .hljs-winutils, 73 | .hljs-flow, 74 | .nginx .hljs-title, 75 | .tex .hljs-special, 76 | .hljs-header, 77 | .hljs-attribute, 78 | .hljs-symbol, 79 | .hljs-symbol .hljs-string, 80 | .hljs-tag .hljs-title, 81 | .hljs-value, 82 | .alias .hljs-keyword:first-child, 83 | .css .hljs-tag, 84 | .css .unit, 85 | .css .hljs-important { 86 | color: #f92672; 87 | } 88 | 89 | .hljs-function .hljs-keyword, 90 | .hljs-class .hljs-keyword:first-child, 91 | .hljs-aspect .hljs-keyword:first-child, 92 | .hljs-constant, 93 | .hljs-typename, 94 | .hljs-name, 95 | .css .hljs-attribute { 96 | color: #66d9ef; 97 | } 98 | 99 | .hljs-variable, 100 | .hljs-params, 101 | .hljs-class .hljs-title, 102 | .hljs-aspect .hljs-title { 103 | color: #f8f8f2; 104 | } 105 | 106 | .hljs-string, 107 | .css .hljs-id, 108 | .hljs-subst, 109 | .hljs-type, 110 | .ruby .hljs-class .hljs-parent, 111 | .hljs-built_in, 112 | .django .hljs-template_tag, 113 | .django .hljs-variable, 114 | .smalltalk .hljs-class, 115 | .django .hljs-filter .hljs-argument, 116 | .smalltalk .hljs-localvars, 117 | .smalltalk .hljs-array, 118 | .hljs-attr_selector, 119 | .hljs-pseudo, 120 | .hljs-addition, 121 | .hljs-stream, 122 | .hljs-envvar, 123 | .apache .hljs-tag, 124 | .apache .hljs-cbracket, 125 | .tex .hljs-command, 126 | .hljs-prompt, 127 | .hljs-link_label, 128 | .hljs-link_url { 129 | color: #e6db74; 130 | } 131 | 132 | .hljs-comment, 133 | .hljs-javadoc, 134 | .hljs-annotation, 135 | .hljs-decorator, 136 | .hljs-pi, 137 | .hljs-doctype, 138 | .hljs-deletion, 139 | .hljs-shebang, 140 | .apache .hljs-sqbracket, 141 | .tex .hljs-formula { 142 | color: #75715e; 143 | } 144 | 145 | .coffeescript .javascript, 146 | .javascript .xml, 147 | .tex .hljs-formula, 148 | .xml .javascript, 149 | .xml .vbscript, 150 | .xml .css, 151 | .xml .hljs-cdata, 152 | .xml .php, 153 | .php .xml { 154 | opacity: 0.5; 155 | } 156 | 157 | 158 | 159 | 160 | a { 161 | text-decoration:none; 162 | } 163 | 164 | .md_result{ 165 | font-family:Arial; 166 | font-size:100%; 167 | color: #2c3f51; 168 | box-sizing:border-box; 169 | background-color: #ffffff; 170 | padding:10px 10px 13px 10px; 171 | /*margin:0;*/ 172 | height:100%; 173 | } 174 | 175 | pre { 176 | background-color: #23241f; 177 | border-width: 0; 178 | border-radius: 0; 179 | } 180 | 181 | pre code { 182 | font-size: 14px; 183 | } 184 | 185 | code { 186 | font-family: Courier New; 187 | } 188 | 189 | p code { 190 | color: #2c3f51; 191 | background-color: #e0e0e0; 192 | font-size: 14px; 193 | padding: 3px; 194 | border-radius: 3px; 195 | } 196 | 197 | 198 | ul code { 199 | color: #2c3f51; 200 | background-color: #e0e0e0; 201 | padding: 3px; 202 | font-size: 14px; 203 | border-radius: 3px; 204 | } 205 | ol code { 206 | color: #2c3f51; 207 | background-color: #e0e0e0; 208 | padding: 3px; 209 | font-size: 14px; 210 | border-radius: 3px; 211 | } 212 | 213 | h1, h2, h3, h4, h5, h6 { 214 | /*color: #2c3f51;*/ 215 | font-weight: bold; 216 | } 217 | 218 | p { 219 | /*color: #2c3f51;*/ 220 | font-size: 17px; 221 | font-weight: 500; 222 | } 223 | 224 | ol, ul { 225 | font-size: 17px; 226 | font-weight: 500; 227 | } 228 | 229 | h1 { 230 | font-size: 46px; 231 | margin-bottom: 36px; 232 | margin-top: 36px; 233 | /*margin: 0.67em 0;*/ 234 | } 235 | h2 { 236 | font-size: 36px; 237 | } 238 | h3 { 239 | font-size: 28px; 240 | } 241 | h4 { 242 | font-size: 24px; 243 | } 244 | h5 { 245 | font-size: 21px; 246 | } 247 | h6 { 248 | font-size: 18px; 249 | } 250 | 251 | h2, h3 { 252 | margin-bottom: 30px; 253 | margin-top: 30px; 254 | } 255 | 256 | h4, h5, h6 { 257 | margin-bottom: 24px; 258 | margin-top: 24px; 259 | } 260 | 261 | blockquote { 262 | background: #f9f9f9; 263 | border-left: 10px solid #2196f3; 264 | border-right: 1px solid #2196f3; 265 | font-family: Georgia, serif; 266 | font-size: 16px; 267 | line-height: 1.4; 268 | color: #757575; 269 | text-align: justify; 270 | margin: 1.5em 10px; 271 | padding: 0.5em 10px; 272 | quotes: "\201C""\201D""\2018""\2019"; 273 | } 274 | blockquote:before { 275 | color: #ccc; 276 | content: "\201C"; 277 | font-size: 4em; 278 | line-height: 0.1em; 279 | margin-right: 0.25em; 280 | vertical-align: -0.4em; 281 | } 282 | 283 | 284 | blockquote p { 285 | display: inline; 286 | } 287 | 288 | blockquote a{ 289 | text-decoration: none; 290 | background: #eee; 291 | cursor: pointer; 292 | padding: 0 3px; 293 | color: #2196f3; 294 | } 295 | 296 | blockquote a:hover{ 297 | color: #757575; 298 | } 299 | 300 | blockquote em{ 301 | font-style: italic; 302 | } 303 | 304 | table { 305 | border-collapse:collapse; 306 | } 307 | 308 | table, th, td { 309 | 310 | border: 1px solid #e0e0e0; 311 | 312 | } 313 | 314 | table th { 315 | 316 | font-weight: bold; 317 | padding: 10px; 318 | 319 | } 320 | 321 | table td { 322 | 323 | padding: 10px; 324 | } 325 | 326 | 327 | img { 328 | max-width: 100%; 329 | } 330 | 331 | -------------------------------------------------------------------------------- /js/taboverride/taboverride.min.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"taboverride.min.js","sources":["taboverride.js"],"names":["factory","mod","exports","define","amd","window","tabOverride","isValidModifierKeyCombo","modifierKeys","e","i","j","currModifierKey","modifierKeyNames","numModKeys","length","isValid","tabKeyComboPressed","keyCode","tabKey","tabModifierKeys","untabKeyComboPressed","untabKey","untabModifierKeys","createKeyComboFunction","keyFunc","keyCombo","arguments","push","this","slice","overrideKeyDown","event","tab","tabLen","text","range","tempRange","preNewlines","selNewlines","initScrollTop","selStart","selEnd","sel","startLine","endLine","numTabs","startTab","preTab","whitespace","whitespaceLen","target","currentTarget","srcElement","key","CHARACTER","nodeName","toLowerCase","autoIndent","inWhitespace","value","scrollTop","selectionStart","selectionEnd","document","selection","createRange","duplicate","moveToElementText","setEndPoint","newlineLen","split","newline","aTab","indexOf","charAt","lastIndexOf","replace","collapse","moveEnd","moveStart","select","RegExp","move","match","preventDefault","returnValue","overrideKeyPress","executeExtensions","hook","args","extensions","hooks","len","apply","createListeners","handlerList","loop","func","type","handler","remove","add","addEventListener","elem","removeEventListener","attachEvent","detachEvent","addListeners","listeners","removeListeners","textareaElem","createElement","utils","handlers","keydown","keypress","addExtension","set","elems","enable","enableFlag","elemsArr","numElems","setListeners","attrValue","setAttribute","tabSize","size"],"mappings":";;CAaC,SAAUA,GACP,YAEA,IAAIC,EAEmB,iBAAZC,SAEPF,EAAQE,SACiB,kBAAXC,SAAyBA,OAAOC,IAG9CD,QAAQ,WAAYH,IAGpBC,EAAMI,OAAOC,eACbN,EAAQC,KAEd,SAAUK,GACR,YAgCA,SAASC,GAAwBC,EAAcC,GAC3C,GAEIC,GACAC,EACAC,EAJAC,GAAoB,MAAO,OAAQ,OAAQ,SAC3CC,EAAaN,EAAaO,OAI1BC,GAAU,CAGd,KAAKN,EAAI,EAAOI,EAAJJ,EAAgBA,GAAK,EAC7B,IAAKD,EAAED,EAAaE,IAAK,CACrBM,GAAU,CACV,OAKR,GAAIA,EACA,IAAKN,EAAI,EAAGA,EAAIG,EAAiBE,OAAQL,GAAK,EAAG,CAI7C,GAHAE,EAAkBC,EAAiBH,GAAK,MAGpCD,EAAEG,GAGF,GAAIE,GAIA,IAHAE,GAAU,EAGLL,EAAI,EAAOG,EAAJH,EAAgBA,GAAK,EAC7B,GAAIC,IAAoBJ,EAAaG,GAAI,CACrCK,GAAU,CACV,YAKRA,IAAU,CAKlB,KAAKA,EACD,MAKZ,MAAOA,GAYX,QAASC,GAAmBC,EAAST,GACjC,MAAOS,KAAYC,GAAUZ,EAAwBa,EAAiBX,GAY1E,QAASY,GAAqBH,EAAST,GACnC,MAAOS,KAAYI,GAAYf,EAAwBgB,EAAmBd,GAa9E,QAASe,GAAuBC,EAASjB,GACrC,MAAO,UAAUU,EAASL,GACtB,GAAIH,GACAgB,EAAW,EAEf,IAAIC,UAAUZ,OAAQ,CAClB,GAAuB,gBAAZG,KACPO,EAAQP,GAERV,EAAaO,OAAS,EAElBF,GAAoBA,EAAiBE,QACrC,IAAKL,EAAI,EAAGA,EAAIG,EAAiBE,OAAQL,GAAK,EAC1CF,EAAaoB,KAAKf,EAAiBH,GAAK,MAKpD,OAAOmB,MAGX,IAAKnB,EAAI,EAAGA,EAAIF,EAAaO,OAAQL,GAAK,EACtCgB,GAAYlB,EAAaE,GAAGoB,MAAM,EAAG,IAAM,GAG/C,OAAOJ,GAAWD,KAY1B,QAASM,GAAgBtB,GACrBA,EAAIA,GAAKuB,KAMT,IAEIC,GACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EAnBAC,EAAS1C,EAAE2C,eAAiB3C,EAAE4C,WAC9BC,EAAM7C,EAAES,QAmBRqC,EAAY,WAGhB,MAAKJ,EAAOK,UAA8C,aAAlCL,EAAOK,SAASC,iBAC/BH,IAAQnC,GAAUmC,IAAQhC,GAAqB,KAARgC,GAAeI,GAD/D,CAgBA,GAVAC,GAAe,EACfxB,EAAOgB,EAAOS,MAMdpB,EAAgBW,EAAOU,UAGc,gBAA1BV,GAAOW,eACdrB,EAAWU,EAAOW,eAClBpB,EAASS,EAAOY,aAChBpB,EAAMR,EAAKL,MAAMW,EAAUC,OAExB,CAAA,IAAIsB,EAASC,UAoBhB,MAnBA7B,GAAQ4B,EAASC,UAAUC,cAC3BvB,EAAMP,EAAMD,KACZE,EAAYD,EAAM+B,YAClB9B,EAAU+B,kBAAkBjB,GAC5Bd,EAAUgC,YAAY,WAAYjC,GAClCM,EAASL,EAAUF,KAAKpB,OACxB0B,EAAWC,EAASC,EAAI5B,OAMpBuD,EAAa,GACbhC,EAAcH,EAAKL,MAAM,EAAGW,GAAU8B,MAAMC,GAASzD,OAAS,EAC9DwB,EAAcI,EAAI4B,MAAMC,GAASzD,OAAS,GAE1CuB,EAAcC,EAAc,EAOpC,GAAIe,IAAQnC,GAAUmC,IAAQhC,EAU1B,GAPAW,EAAMwC,EACNvC,EAASD,EAAIlB,OACb+B,EAAU,EACVC,EAAW,EACXC,EAAS,EAGLP,IAAaC,GAAgC,KAAtBC,EAAI+B,QAAQ,MAoCnC,GA9BI9B,EAFa,IAAbH,GAAgD,OAA9BN,EAAKwC,OAAOlC,EAAW,GAE7BA,EASAN,EAAKyC,YAAY,KAAMnC,EAAW,GAAK,EAInDC,IAAWP,EAAKpB,QAAkC,OAAxBoB,EAAKwC,OAAOjC,GAEtCG,EAAUH,EACyB,OAA5BP,EAAKwC,OAAOjC,EAAS,GAG5BG,EAAUH,EAAS,GAInBG,EAAUV,EAAKuC,QAAQ,KAAMhC,GACb,KAAZG,IACAA,EAAUV,EAAKpB,SAKnBE,EAAmBqC,EAAK7C,GAExBqC,EAAU,EAGVK,EAAOS,MAAQzB,EAAKL,MAAM,EAAGc,GAAaX,EACtCE,EAAKL,MAAMc,EAAWC,GAASgC,QAAQ,MAAO,WAE1C,MADA/B,IAAW,EACJ,KAAOb,IACbE,EAAKL,MAAMe,GAGhBT,GACAA,EAAM0C,WACN1C,EAAM2C,QAAQxB,EAAWb,EAAUI,EAAUZ,EAAUK,EAAcD,GACrEF,EAAM4C,UAAUzB,EAAWd,EAAWP,EAASI,GAC/CF,EAAM6C,WAGN9B,EAAOW,eAAiBrB,EAAWP,EAEnCiB,EAAOY,aAAerB,EAAUI,EAAUZ,EAC1CiB,EAAOU,UAAYrB,OAEpB,CAAA,IAAInB,EAAqBiC,EAAK7C,GAmCjC,MAhC2C,KAAvC0B,EAAKL,MAAMc,GAAW8B,QAAQzC,KAE1BW,IAAcH,EAEdE,EAAMA,EAAIb,MAAMI,GAGhBc,EAASd,EAEba,EAAWb,GAGfiB,EAAOS,MAAQzB,EAAKL,MAAM,EAAGc,GAAaT,EAAKL,MAAMc,EAAYI,EAAQP,GACrEE,EAAIkC,QAAQ,GAAIK,QAAO,KAAOjD,EAAK,KAAM,WAErC,MADAa,IAAW,EACJ,OACNX,EAAKL,MAAMY,GAGhBN,GAEAA,EAAM0C,WACN1C,EAAM2C,QAAQxB,EAAWb,EAASK,EAAYD,EAAUZ,EAAUK,EAAcD,GAChFF,EAAM4C,UAAUzB,EAAWd,EAAWO,EAASV,GAC/CF,EAAM6C,WAGN9B,EAAOW,eAAiBrB,EAAWO,EAEnCG,EAAOY,aAAerB,EAASK,EAAYD,EAAUZ,OAS7D,IAAIjB,EAAmBqC,EAAK7C,GACpB2B,GACAA,EAAMD,KAAOF,EACbG,EAAM6C,WAEN9B,EAAOS,MAAQzB,EAAKL,MAAM,EAAGW,GAAYR,EAAME,EAAKL,MAAMY,GAC1DS,EAAOY,aAAeZ,EAAOW,eAAiBrB,EAAWP,EACzDiB,EAAOU,UAAYrB,OAEpB,CAAA,IAAInB,EAAqBiC,EAAK7C,GAkBjC,MAdmD,KAA/C0B,EAAKL,MAAMW,EAAWP,GAAQwC,QAAQzC,KACtCkB,EAAOS,MAAQzB,EAAKL,MAAM,EAAGW,EAAWP,GAAUC,EAAKL,MAAMW,GAGzDL,GAEAA,EAAM+C,KAAK5B,EAAWd,EAAWP,EAASI,GAC1CF,EAAM6C,WAEN9B,EAAOY,aAAeZ,EAAOW,eAAiBrB,EAAWP,EACzDiB,EAAOU,UAAYrB,QAOhC,IAAIkB,EAAY,CAInB,GAAiB,IAAbjB,GAAgD,OAA9BN,EAAKwC,OAAOlC,EAAW,GAIzC,YADAkB,GAAe,EAqBnB,IAhBAf,EAAYT,EAAKyC,YAAY,KAAMnC,EAAW,GAAK,EAGnDI,EAAUV,EAAKuC,QAAQ,KAAMjC,GAGb,KAAZI,IACAA,EAAUV,EAAKpB,QAInBkC,EAAad,EAAKL,MAAMc,EAAWC,GAASuC,MAAM,WAAW,GAC7DlC,EAAgBD,EAAWlC,OAIZ6B,EAAYM,EAAvBT,EAEA,YADAkB,GAAe,EAIfvB,IAEAA,EAAMD,KAAO,KAAOc,EACpBb,EAAM6C,WAGN9B,EAAOS,MAAQzB,EAAKL,MAAM,EAAGW,GAAY,KAAOQ,EAAad,EAAKL,MAAMY,GAGxES,EAAOY,aAAeZ,EAAOW,eAAiBrB,EAAW6B,EAAapB,EACtEC,EAAOU,UAAYrB,GAI3B,MAAI/B,GAAE4E,mBACF5E,GAAE4E,kBAEF5E,EAAE6E,aAAc,GACT,IAcf,QAASC,GAAiB9E,GACtBA,EAAIA,GAAKuB,KAET,IAAIsB,GAAM7C,EAAES,OAEZ,IAAID,EAAmBqC,EAAK7C,IAAMY,EAAqBiC,EAAK7C,IAC3C,KAAR6C,GAAcI,IAAeC,EAAe,CAEjD,IAAIlD,EAAE4E,eAIF,MADA5E,GAAE6E,aAAc,GACT,CAHP7E,GAAE4E,kBAgBd,QAASG,GAAkBC,EAAMC,GAC7B,GAAIhF,GACAiF,EAAaC,EAAMH,OACnBI,EAAMF,EAAW5E,MAErB,KAAKL,EAAI,EAAOmF,EAAJnF,EAASA,GAAK,EACtBiF,EAAWjF,GAAGoF,MAAM,KAAMJ,GA6BlC,QAASK,GAAgBC,GAMrB,QAASC,GAAKC,GACV,IAAKxF,EAAI,EAAOmF,EAAJnF,EAASA,GAAK,EACtBwF,EAAKF,EAAYtF,GAAGyF,KAAMH,EAAYtF,GAAG0F,SAPjD,GAAI1F,GAEA2F,EACAC,EAFAT,EAAMG,EAAYjF,MAwCtB,OA7BIiD,GAASuC,kBACTF,EAAS,SAAUG,GACfP,EAAK,SAAUE,EAAMC,GACjBI,EAAKC,oBAAoBN,EAAMC,GAAS,MAGhDE,EAAM,SAAUE,GAGZH,EAAOG,GACPP,EAAK,SAAUE,EAAMC,GACjBI,EAAKD,iBAAiBJ,EAAMC,GAAS,OAGtCpC,EAAS0C,cAEhBL,EAAS,SAAUG,GACfP,EAAK,SAAUE,EAAMC,GACjBI,EAAKG,YAAY,KAAOR,EAAMC,MAGtCE,EAAM,SAAUE,GACZH,EAAOG,GACPP,EAAK,SAAUE,EAAMC,GACjBI,EAAKE,YAAY,KAAOP,EAAMC,QAMtCE,IAAKA,EACLD,OAAQA,GAchB,QAASO,GAAaJ,GAClBhB,EAAkB,gBAAiBgB,IACnCK,EAAUP,IAAIE,GAalB,QAASM,GAAgBN,GACrBhB,EAAkB,mBAAoBgB,IACtCK,EAAUR,OAAOG,GApjBrB,GACIK,GASArC,EACAF,EAXAN,EAAW3D,OAAO2D,SAElBS,EAAO,IACPtD,EAAS,EACTG,EAAW,EACXF,KACAG,GAAqB,YACrBmC,GAAa,EACbC,GAAe,EACfoD,EAAe/C,EAASgD,cAAc,YAGtCpB,IA8iBJiB,GAAYd,IACNI,KAAM,UAAWC,QAASrE,IAC1BoE,KAAM,WAAYC,QAASb,KAIjCwB,EAAanD,MAAQ,KACrBY,EAAUuC,EAAanD,MACvBU,EAAaE,EAAQzD,OACrBgG,EAAe,KAUfzG,EAAY2G,OACRzB,kBAAmBA,EACnBjF,wBAAyBA,EACzBwF,gBAAiBA,EACjBa,aAAcA,EACdE,gBAAiBA,GAQrBxG,EAAY4G,UACRC,QAASpF,EACTqF,SAAU7B,GAadjF,EAAY+G,aAAe,SAAU5B,EAAMS,GAQvC,MAPIT,IAAwB,gBAATA,IAAqC,kBAATS,KACtCN,EAAMH,KACPG,EAAMH,OAEVG,EAAMH,GAAM7D,KAAKsE,IAGdrE,MAgBXvB,EAAYgH,IAAM,SAAUC,EAAOC,GAC/B,GAAIC,GACAC,EACAC,EACAC,EACAC,EACAnH,EACA8F,CAEJ,IAAIe,EAqBA,IApBAE,EAAa9F,UAAUZ,OAAS,GAAKyG,EAIrCE,EAAWH,EACXI,EAAWD,EAAS3G,OAEI,gBAAb4G,KACPD,GAAYA,GACZC,EAAW,GAGXF,GACAG,EAAehB,EACfiB,EAAY,SAEZD,EAAed,EACfe,EAAY,IAGXnH,EAAI,EAAOiH,EAAJjH,EAAcA,GAAK,EAC3B8F,EAAOkB,EAAShH,GACZ8F,GAAQA,EAAKhD,UAA4C,aAAhCgD,EAAKhD,SAASC,gBACvC+B,EAAkB,OAAQgB,EAAMiB,IAChCjB,EAAKsB,aAAa,2BAA4BD,GAC9CD,EAAapB,GAKzB,OAAO3E,OAUXvB,EAAYyH,QAAU,SAAUC,GAC5B,GAAItH,EAEJ,IAAIiB,UAAUZ,OAAQ,CAClB,GAAIiH,GAAwB,gBAATA,IAAqBA,EAAO,EAE3C,IADAvD,EAAO,GACF/D,EAAI,EAAOsH,EAAJtH,EAAUA,GAAK,EACvB+D,GAAQ,QAIZA,GAAO,GAEX,OAAO5C,MAGX,MAAiB,MAAT4C,EAAiB,EAAIA,EAAK1D,QAWtCT,EAAYoD,WAAa,SAAU8D,GAC/B,MAAI7F,WAAUZ,QACV2C,EAAa8D,GAAS,GAAO,EACtB3F,MAGJ6B,GAcXpD,EAAYa,OAASK,EAAuB,SAAUN,GAClD,MAAKS,WAAUZ,YAGfI,EAASD,GAFEC,GAGZC,GAaHd,EAAYgB,SAAWE,EAAuB,SAAUN,GACpD,MAAKS,WAAUZ,YAGfO,EAAWJ,GAFAI,GAGZC"} -------------------------------------------------------------------------------- /js/editor.js: -------------------------------------------------------------------------------- 1 | /* 2 | ;!!!!!!!!!!!!!!!!!!!!; 3 | !!!!!!!!!!!!!!ooooo!!!!!!!!!!!!! 4 | !!!!!!!!oooooooooooooooooooooooo!!!!!!!! 5 | !!!!!!oooooooooooooooooooooooooooooooooo!!!!!! 6 | !!!!!!oooooooooooooooooooooooooooooooooooooooo!!!!!! 7 | !!!!!oooooooooooooooooooooooooooooooooooooooooooooo!!!!! 8 | !!!!!oooooooooooooooooooooooooooooooooooooooooooooooooo!!!!! 9 | ;!!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!!! 10 | !!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!! 11 | !!!!ooooooooooooo oooooooooooooooooooooooooooooooooooooooooo!!!! 12 | !!!oooooooooooooooo ooooooooooooooooooooooooooooooooooooooooooo!!!; 13 | !!!oooooooooooooooooo ooooooooooooooooooooooo oooooooooooooo!!!; 14 | !!!ooooooooooooooooooo ooooooooooooooooooooooo ooooooooooooooo!!! 15 | !!!!oooooooooooooooooooo ooooooooooooooooooooo oooooooooooooooo!!! 16 | ;!!!ooooooooooooooooooooo! ooooooooooooooooooo! oooooooooooooooo!!!! 17 | !!!oooooooooooooooooooooo ooooooooooooooooooo o ooooooooooooooooo!!! 18 | !!!ooooooooooooooooooooo; ooooooooooooooooo ; oooooooooooooooooo!!!; 19 | !!!!ooooooooooooooooooooo ; !oooooooooooooo! o oooooooooooooooooo!!!! 20 | !!!!oooooooooooooooooooo o ooooooooooooo oo ooooooooooooooooooo!!! 21 | !!!ooooooooooooooooooooo oo ooooooooooo ooo ooooooooooooooooooo!!! 22 | !!!oooooooooooooooooooo oooo ooooooooo ;ooo! ;ooooooooooooooooooo!!! 23 | !!!!ooooooooooooooooooo ooooo oooooo ooooo oooooooooooooooooooo!!! 24 | ;!!!oooooooooooooooooo ;oooooo o oooooo ooooooooooooooooooo!!!! 25 | !!!oooooooooooooooooo oooooooo oooooooo ooooooooooooooooooo!!! 26 | !!!!oooooooooooooooo oooooooooo !oooooooooo ooooooooooooooooooo!!! 27 | !!!oooooooooooooooo oooooooooooooooooooooooooo! !oooooooooooooooooo!!! 28 | !!!!oooooooooooooo oooooooooooooooooooooooooo oooooooooooooooooo!!!! 29 | !!!!ooooooooooooo oooooooooooooooooooooooooo ;oooooooooooooooo!!!! 30 | !!!!oooooooooooo ooooooooooooooooooooooooo; ooooooooooooooo!!!! 31 | !!!!ooooooooooooooooooooooooooooooooooooooooooo ooooooooooooo!!!! 32 | !!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!! 33 | !!!!oooooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!!; 34 | !!!!!ooooooooooooooooooooooooooooooooooooooooooooooooooooo!!!! 35 | !!!!!oooooooooooooooooooooooooooooooooooooooooooooooo!!!!! 36 | !!!!!oooooooooooooooooooooooooooooooooooooooooooo!!!!! 37 | !!!!!!oooooooooooooooooooooooooooooooooooooo!!!!!! 38 | !!!!!!!oooooooooooooooooooooooooooooo!!!!!!! 39 | ;!!!!!!!!!ooooooooooooooooooo!!!!!!!!! 40 | !!!!!!!!!!!!!!!!!!!!!!!!!!!! 41 | ;!!!!!!!!!!!!! 42 | */ 43 | var lock = false; 44 | 45 | function preload(){ 46 | 47 | var marked = require("marked"); 48 | marked.setOptions({ 49 | renderer: new marked.Renderer(), 50 | gfm: true, 51 | tables: true, 52 | breaks: false, 53 | pedantic: false, 54 | sanitize: false, 55 | smartLists: true, 56 | smartypants: false 57 | }); 58 | var resultDiv = global.$('.md_result'); 59 | var buffer = global.window.document.getElementById("buffer"); 60 | var textEditor = global.$('#editor'); 61 | var text = textEditor.val(); 62 | if (lock == false) { 63 | buffer.innerHTML = (marked(text)); 64 | MathJax.Hub.Queue(["Typeset",MathJax.Hub,buffer], 65 | ["preview",this]); 66 | } 67 | 68 | // MathJax.Hub.Queue(["Typeset",MathJax.Hub], 69 | // ["preview",this]); 70 | hljs.initHighlighting.called = false; 71 | hljs.initHighlighting(); 72 | } 73 | 74 | // function preload(){ 75 | 76 | // var resultDiv = global.$('.md_result'); 77 | // var buffer = global.window.document.getElementById("buffer"); 78 | // var textEditor = global.$('#editor'); 79 | // var text = textEditor.val(); 80 | // text = escape(text); 81 | // buffer.innerHTML = (text); 82 | // MathJax.Hub.Queue(["Typeset",MathJax.Hub,buffer], 83 | // ["preview",this]); 84 | 85 | 86 | 87 | // } 88 | 89 | function reload(){ 90 | preload(); 91 | if (currentFileName != null) { 92 | global.$("title").html(currentFileName + '*' + " --- Mango"); 93 | } 94 | isSaved = false; 95 | 96 | }; 97 | 98 | function preview(){ 99 | 100 | if (lock == false){ 101 | lock = true; 102 | setTimeout(function(){ 103 | var path = require('path'); 104 | var resultDiv = global.$('.md_result'); 105 | 106 | if (currentDirectory != null) { 107 | $("#buffer img").each(function() { 108 | // console.log(global.$(this).attr("src")); 109 | // console.log(path.basename(global.$(this).attr("src"))); 110 | if (global.$(this).attr("src").indexOf('.') == 0) { 111 | filePath = global.$(this).attr("src").substring(1); 112 | console.log(currentDirectory + filePath); 113 | global.$(this).attr("src", currentDirectory + filePath); 114 | } 115 | }); 116 | } 117 | 118 | resultDiv.html(buffer.innerHTML); 119 | lock = false; 120 | }, 300); 121 | } 122 | 123 | } 124 | 125 | // function preview(){ 126 | // var marked = require("marked"); 127 | // marked.setOptions({ 128 | // renderer: new marked.Renderer(), 129 | // gfm: true, 130 | // tables: true, 131 | // breaks: false, 132 | // pedantic: false, 133 | // sanitize: false, 134 | // smartLists: true, 135 | // smartypants: false 136 | // }); 137 | // setTimeout(function(){ 138 | // var resultDiv = global.$('.md_result'); 139 | // var text = buffer.innerHTML; 140 | // text = text.replace(/>/mg, '>'); 141 | // resultDiv.html(marked(text)); 142 | // hljs.initHighlighting.called = false; 143 | // hljs.initHighlighting(); 144 | // }, 300); 145 | 146 | // } 147 | 148 | function escape(html, encode) { 149 | return html 150 | .replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&') 151 | .replace(//g, '>') 153 | .replace(/"/g, '"') 154 | .replace(/'/g, '''); 155 | } 156 | 157 | 158 | function loadText(text){ 159 | var textEditor = global.$('#editor'); 160 | textEditor.val(text); 161 | preload(); 162 | isSaved = true; 163 | }; 164 | 165 | function loadFile(file){ 166 | var fs = require('fs'); 167 | fs.readFile(file, 'utf8', function (err,data) { 168 | if (err) { 169 | return console.log(err); 170 | } 171 | loadText(data); 172 | }); 173 | }; 174 | 175 | function chooseFile(name, callback) { 176 | var chooser = global.$(name); 177 | chooser.change(function(evt) { 178 | console.log("asd"); 179 | callback(global.$(this).val()); 180 | // this.value = null; 181 | }); 182 | 183 | chooser.click(function() { 184 | // console.log("asd"); 185 | // callback(global.$(this).val()); 186 | this.value = null; 187 | }); 188 | 189 | chooser.trigger('click'); 190 | }; 191 | 192 | 193 | function openChooseFile(name, callback) { 194 | var chooser = global.$(name); 195 | chooser.change(function(evt) { 196 | console.log(process.cwd()); 197 | callback(global.$(this).val()); 198 | // this.value = null; 199 | }); 200 | chooser.click(function() { 201 | // console.log("asd"); 202 | // callback(global.$(this).val()); 203 | this.value = null; 204 | }); 205 | 206 | chooser.trigger('click'); 207 | }; -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | Mango Editor for Markdown 50 | 51 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 433 | 434 | 435 | 436 | 443 | 444 | 445 | 446 |
447 |
448 | 449 |
450 |
451 | 452 |
453 |
454 | 455 |
456 |
457 | 458 |
459 |
460 | 461 |
462 |
463 | 464 |
465 |
466 | 467 |
468 |
469 | 470 |
471 |
472 | 473 |
474 | 475 |
476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 |
484 | 485 |
486 | 487 |
488 | 492 |
493 | 494 | 495 | 519 | 520 | 521 | 522 | 523 | --------------------------------------------------------------------------------