React-ace: custom mode documentation is lacking

Created on 4 Aug 2017  路  1Comment  路  Source: securingsincity/react-ace

This is in reference to https://github.com/securingsincity/react-ace/issues/126

If a JSFiddle or a working example on how to integrate a custom mode is available, that would be helpful.

Tried following the directions that @AlonBe listed with the custom mode provided by @pollen8 and I cannot unfortunately get the syntax highlighter to register correctly... :(

Any help would be appreciated.

custom_mode

Where my editor is being rendered:

componentDidMount () { const customMode = new CustomSqlMode(); this.refs.ace.editor.getSession().setMode(test); console.log(customMode); }

enhancement good first issue help wanted

Most helpful comment

Maybe it's just me, but the file you attached for "custom_mode" is a text file that says <script>alert("xss")</script>

>All comments

Maybe it's just me, but the file you attached for "custom_mode" is a text file that says <script>alert("xss")</script>

Was this page helpful?
0 / 5 - 0 ratings

Related issues

venil7 picture venil7  路  3Comments

huangjiatian picture huangjiatian  路  7Comments

dmavrin picture dmavrin  路  3Comments

avalkowsky picture avalkowsky  路  6Comments

BenBrewerBowman picture BenBrewerBowman  路  5Comments