Open impvd opened 6 years ago
根据这篇指引: https://github.com/ajaxorg/ace/wiki/Importing-.tmtheme-and-.tmlanguage-Files-into-Ace
已经在这里下载的 tmlanguage: https://github.com/soegaard/racket-highlight-for-github/blob/master/racket.tmLanguage
生成过程:
$ node tmlanguage.js racket.tmLanguage Converting racket.tmLanguage Created demo file at: /Users/pivdets/Downloads/tmp/ace/demo/kitchen-sink/docs/racketsoegaard.rkt Created mode file at: /Users/pivdets/Downloads/tmp/ace/lib/ace/mode/racketsoegaard.js Created mode file at: /Users/pivdets/Downloads/tmp/ace/lib/ace/mode/racketsoegaard_highlight_rules.js Created snippets file at: /Users/pivdets/Downloads/tmp/ace/lib/ace/snippets/racketsoegaard.js [ ' // Add the missing mode "Django" to ext-modelist\n Django: ["html"]' ] ... velocity Racketsoegaard verilog Racketsoegaard vhdl Racketsoegaard wollok Racketsoegaard xml Racketsoegaard xquery Racketsoegaard yaml Racketsoegaard racketsoegaard Racketsoegaard Updated modelist at: /Users/pivdets/Downloads/tmp/ace/lib/ace/ext/modelist.js #multilinecomment,#multilinecomment_0,#multilinecomment created file /Users/pivdets/Downloads/tmp/ace/lib/ace/mode/racket_soegaard_highlight_rules.js testing highlighter (node:16144) DeprecationWarning: `parseString()` is deprecated. It's not actually async. Use `parse()` instead.
产生的文件代码如下: racket_soegaard_highlight_rules.js.txt racket_soegaard.js.txt racketsoegaard_highlight_rules.js.txt racketsoegaard.js.txt
尝试过把每一个都拷贝到: /Applications/Quiver.app/Contents/Resources/dist/vendor/ace ,重启Quiver都看不到 racket的语法高亮。
/Applications/Quiver.app/Contents/Resources/dist/vendor/ace
根据这篇指引: https://github.com/ajaxorg/ace/wiki/Importing-.tmtheme-and-.tmlanguage-Files-into-Ace
已经在这里下载的 tmlanguage: https://github.com/soegaard/racket-highlight-for-github/blob/master/racket.tmLanguage
生成过程:
产生的文件代码如下: racket_soegaard_highlight_rules.js.txt racket_soegaard.js.txt racketsoegaard_highlight_rules.js.txt racketsoegaard.js.txt
尝试过把每一个都拷贝到:
/Applications/Quiver.app/Contents/Resources/dist/vendor/ace
,重启Quiver都看不到 racket的语法高亮。