Skip to content
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

Enhancement Request: Support CFScript Files #87

Closed
isapir opened this issue Jun 6, 2023 · 6 comments
Closed

Enhancement Request: Support CFScript Files #87

isapir opened this issue Jun 6, 2023 · 6 comments

Comments

@isapir
Copy link

isapir commented Jun 6, 2023

Lucee supports CFScript files with the extension *.cfs.

That allows you to write CFScript code without the <cfscript> tag, e.g. a valid file can be:

// filename: time.cfs

echo(now());

ATM if I don't wrap that CFScript code with the <cfscript> tag I do not get the syntax highlighting, making it very difficult to use those files. It would be great if the extension would support them.

@garethedwards-tass
Copy link

Can't you just write cfc's in script?

image

@isapir
Copy link
Author

isapir commented Mar 17, 2024

@garethedwards-tass You can, but I want it to work without the component { } outer keyword

@isapir
Copy link
Author

isapir commented Mar 17, 2024

I wonder if it can be as simple as adding a ".cfs" file extension check to docIsScript at

const docIsScript: boolean = (docIsCfcFile && isScriptComponent(document));

@ghedwards
Copy link

I don't maintain this project so I can't push any changes here, but I can at https://github.com/cfmleditor/cfmleditor , which is basically a fork of this project. Can you point me at documentation for this file type and I'll do my best to get it included

@isapir
Copy link
Author

isapir commented Mar 18, 2024

@ghedwards It was available before Lucee 6, but now it's official:
https://dev.lucee.org/t/what-is-new-in-lucee-6-part-2/13248#cfs-templates-12

@isapir
Copy link
Author

isapir commented Mar 18, 2024

Thanks @ghedwards - I installed https://marketplace.visualstudio.com/items?itemName=CFMLEditor.cfmleditor instead of the one in this repo. Great job!

@isapir isapir closed this as completed Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants