-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mixed Language Support (HTML+CFML) #17
Comments
Mix of CFML and SQL is of importance. |
I've done some research about this. It seems to be doable using grammar injections. https://github.com/mjbvz/vscode-js-template-string-grammar-injection-example It seems I will create new CFML/CFScript language rules to support those features. |
@ilich : I don't know if it will help at all, but here's the CFML extension for Sublime Text that supports mixed CFML (CFML+HTML, CFML+CSS, CFML+JS, CFML+SQL): https://github.com/SublimeText/ColdFusion |
@Joyrex : Do you know any official CFML/CFScript language specification and/or language test kit? I found https://github.com/lucee/Lucee/tree/master/test, but I'd like to have some test cfm's as well. Lucee syntax is a bit different from CFML tags. |
I too am interested in this. SQL, Java, HTML, and CFML would be great on one page! |
@ilich - sorry I missed this! Charlie Arehart's CF 411 page has a listing of CFML testing tools: |
is there no way to adapt this package into VSCode? https://github.com/jcberquist/sublimetext-cfml |
Unfortunately VS Code does not support Sublime Syntax files that are more advanced than TextMate ones. As I understood, there is no way now to mix languages inside VS Code. I haven't found a way to tell the editor that this code is SQL and that code is CFML. I have updated CFML syntax highlighting with the latest version from TextMate bundle yesterday. I hope it will make our life a bit easier. |
I'm not sure if this is something this extension should/can address, but with files being identified as CFML, Intellisense is lost for mixed languages (HTML in CFM files, JS in CFM files, SQL in CFM files, etc.).
I've tried adding the file associations to the VS Code config by associating *.cfm as html, but that breaks the syntax highlighting this extension provides.
Sublime Text seems to know the files are mixed and handles hinting and autocomplete fine - but Visual Studio Code is far more stable in my experience and better supported.
Is this something that this extension can address, or is there a way to configure VS Code to support this?
The text was updated successfully, but these errors were encountered: