dual syntax highlighting in ACE

别来无恙 提交于 2019-12-22 14:59:08

问题


I'd like to enable syntax highlighting of JS within a python script using the ACE editor. Specifically, I'd like something like this:

#python stuff...
foo_dict = {}

foo = """<script> var foo = 3 </script>"""

where everything in the script tag is formatted for JS, and the rest is formatted for python.

I am stuck at square one, and before manually munging a new "mode" together I'm hoping you all have a neat answer. Thanks in advance.

来源:https://stackoverflow.com/questions/16199849/dual-syntax-highlighting-in-ace

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!