Embed multiple syntax highlight
- 主要語言
- 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 還沒有評估資料。