阅读:3828回复:8
Stylish 1.4.1新版编辑器CodeMirror
新版的高亮界面不错,字体我这里很小,自己改了下。
@namespace url(http://www.w3.org/1999/xhtml); :root { font: 11px consolas,monospace; } .devtools-monospace { font-family: consolas,monospace; font-size: 100%; } 查找栏默认隐藏,查找下一个之类的快捷键不知道是什么。从CodeMirror的github站点上的代码库里找到了,默认的有PC和Mac两套风格的快捷键。 功能挺强大的,类似vim风格。 keyMap.pcDefault = { "Ctrl-A": "selectAll", "Ctrl-D": "deleteLine", "Ctrl-Z": "undo", "Shift-Ctrl-Z": "redo", "Ctrl-Y": "redo", "Ctrl-Home": "goDocStart", "Alt-Up": "goDocStart", "Ctrl-End": "goDocEnd", "Ctrl-Down": "goDocEnd", "Ctrl-Left": "goWordLeft", "Ctrl-Right": "goWordRight", "Alt-Left": "goLineStart", "Alt-Right": "goLineEnd", "Ctrl-Backspace": "delWordBefore", "Ctrl-Delete": "delWordAfter", "Ctrl-S": "save", "Ctrl-F": "find", "Ctrl-G": "findNext", "Shift-Ctrl-G": "findPrev", "Shift-Ctrl-F": "replace", "Shift-Ctrl-R": "replaceAll", "Ctrl-[": "indentLess", "Ctrl-]": "indentMore", fallthrough: "basic" }; keyMap.macDefault = { "Cmd-A": "selectAll", "Cmd-D": "deleteLine", "Cmd-Z": "undo", "Shift-Cmd-Z": "redo", "Cmd-Y": "redo", "Cmd-Up": "goDocStart", "Cmd-End": "goDocEnd", "Cmd-Down": "goDocEnd", "Alt-Left": "goWordLeft", "Alt-Right": "goWordRight", "Cmd-Left": "goLineStart", "Cmd-Right": "goLineEnd", "Alt-Backspace": "delWordBefore", "Ctrl-Alt-Backspace": "delWordAfter", "Alt-Delete": "delWordAfter", "Cmd-S": "save", "Cmd-F": "find", "Cmd-G": "findNext", "Shift-Cmd-G": "findPrev", "Cmd-Alt-F": "replace", "Shift-Cmd-Alt-F": "replaceAll", "Cmd-[": "indentLess", "Cmd-]": "indentMore", fallthrough: ["basic", "emacsy"] }; |
|
1楼#
发布于:2014-02-08 19:43
油猴也用的这个吧
|
|
|
2楼#
发布于:2014-02-08 21:13
额 这个是放在stylish新建样式里面么
|
|
3楼#
发布于:2014-02-09 11:16
我说为啥字体变那么小,原来是换编辑器了,原来的中文输入法bug修复了吗
|
|
4楼#
发布于:2014-02-09 11:56
|
|
5楼#
发布于:2014-02-09 14:58
之前就看到说新版编辑器会解决中文输入了
总之这算一个好消息 |
|
|
6楼#
发布于:2014-02-12 00:38
|
|
|
7楼#
发布于:2014-02-13 03:13
.CodeMirror.cm-s-mozilla { font: 14px consolas,monospace; } .devtools-monospace { font-family: consolas,monospace; font-size: 100%; } @-moz-document url-prefix(chrome://stylish/content/edit.xul){ #update-url{display:block !important;height:21px !important;margin-bottom:5px !important;} #update-url > hbox{width:80% !important;margin-left:6px !important;color:blue !important;} #update-url:before {content:"URL: ";font-weight: bold !important;color: #444444 !important;} #tags,label[control="tags"]{display:none !important;} button[label="!important"]{display:none !important;} } |
|
8楼#
发布于:2014-02-13 12:42
codemirror究竟是干嘛的?很久以前就看见jsbeautifier的网页版在用这个东西, 看起来似乎就是个代码高亮的纯文本框
|
|
|