├── README.md └── browser-notepad.md /README.md: -------------------------------------------------------------------------------- 1 | # browser-notepad 2 | 3 | ##浏览器编辑器 4 | 5 | **仅适用于支持HTML5内容可编辑属性的浏览器** 6 | 7 | ###使用方法 8 | 9 | 打开浏览器,然后将下面的代码输入进地址栏即可。 10 | 11 | ##最简单朴素的浏览器-编辑器: 12 | 13 | 浏览器地址栏输入以下内容: 14 | 15 | `data:text/html, ` 16 | 17 | ##支持各种编程语言的编辑器 18 | 19 | 浏览器地址栏输入以下内容: 20 | 21 | `data:text/html,
` 22 | 23 | 24 | 更多语言的支持: 将 `ace/mode/ruby`用以下语言替换: 25 | 26 | Markdown -> `ace/mode/markdown` 27 | 28 | Python -> `ace/mode/python` 29 | 30 | C/C++ -> `ace/mode/c_cpp` 31 | 32 | Javscript -> `ace/mode/javascript` 33 | 34 | Java -> `ace/mode/java` 35 | 36 | Scala- -> `ace/mode/scala` 37 | 38 | CoffeeScript -> `ace/mode/coffee` 39 | 40 | and 41 | css, html, php, latex, 42 | tex, sh, sql, lua, clojure, dart, typescript, go, groovy, json, jsp, less, lisp, 43 | lucene, perl, powershell, scss, textile, xml, yaml, xquery, liquid, diff and many more... 44 | 45 | 46 | 47 | ##想换个主题 48 | 49 | 50 | 51 | 将 `ace/theme/monokai`用下面的替换掉: 52 | 53 | Eclipse -> ace/theme/eclipse 54 | 55 | GitHub -> ace/theme/github 56 | 57 | TextMate -> ace/theme/textmate 58 | 59 | and 60 | ambiance, dawn, chaos, chrome, dreamweaver, xcode, vibrant_ink, solarized_dark, solarized_light, tomorrow, tomorrow_night, tomorrow_night_blue, 61 | twilight, tomorrow_night_eighties, pastel_on_dark and many more.. 62 | 63 | 64 | ##想在浏览器编辑Markdown 65 | 66 | 67 | `data:text/html,` 68 | 69 | 70 | 71 | 作者链接: