angular-ui / ui-ace

This directive allows you to add ACE editor elements.
http://angular-ui.github.io/ui-ace
MIT License
578 stars 172 forks source link

advanced editor mode configuration #158

Open vanilla-thunder opened 8 years ago

vanilla-thunder commented 8 years ago

some editor modes allow extended options, e.g. inline:true for php mode ( https://github.com/ajaxorg/ace/issues/2542 ) It can be configured this way:

<div ui-ace="{ mode: {path:'ace/mode/php',inline:true} }"></div>

although setMode() is still undocumented, this should work for all other possible options, too.