ajaxorg / ajaxorg/ace

Embed multiple syntax highlight

未關閉
#3,435 7 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
effort/large feature-request no-autoclose p2
主要語言
JavaScript
星號
27.1k
分支
5.3k
PR 合併指標
30 天內沒有已合併 PR

描述

I'm using ace editor with "html" mode for web programming as a web IDE. I can highlight code for HTMl, CSS and JavaScript. It works nicely, thank you for it. This is my code:

`editor.getSession().setMode('ace/mode/html');`

I'd like to embed coffeescript and typescript syntax highlight support too when using the

` ...some code... `
` ...some code... `

tags in the editor. I am aware that Ace does have modes for these languages but they are separate files (mode-coffee.js and mode-typescript.js) and I don't know how I could embed these into mode-html.js to support the above. The code is rather complicated. Could you kindly help me out? I've been studying these files for days now and I'd appreciate any help.

Thank you.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。