I know that this is now how PHP files actual work in the wild, but would it be possible to allow for the ace editor to provide syntax highlighting when in PHP mode even if I don't physically write <?php
at the start of the editor? I looked through the documentation briefly but didn't find anything in reference to this as a feature. I'd like to give my users the ability to just start writing PHP without requiring them to include the opening tag so maybe adding an option on the PHP editor that will allow for this?
Yes you can. You need to set inline to true.
session.setMode({path:"ace/mode/php", inline:true})
Awesome! Thanks @baconface - works great!
Most helpful comment
Yes you can. You need to set inline to true.
session.setMode({path:"ace/mode/php", inline:true})