question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Thanks for your work. I use it everyday. I have a request about code formatting. Since using sublime I always have trouble with automatic code formating

  • <cfelse><cfelseif>, which have an extra identation after

  • tags without closing tag like <cfset> which have an extra identation after, except if it is written like so <cfset />

  • Coldfusion tags into <javascript></javascript> HTML tag have no proper code color and indentation

I read Sublime documentation and code to find solution, but I am lost and found no solution so far.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jcberquistcommented, Mar 22, 2017

Yeah, good catch regarding the HTML tags. With the change I suggested above, for HTML in CFML documents, the rules in the cfml-indent.tmPreferences file take precedence. So I might need to add the HTML rules to it. (Similar to what you ended up doing above.)

0reactions
jcberquistcommented, Mar 23, 2017

@eric00000007: I have put up new settings that include the HTML indent settings as well. Thanks for your help. You may still want to override the default file, since I did not include cfmodule. (I was torn about it but since it can be used with a closing tag, I did not want to prevent it from having a following indent.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prettier · Opinionated Code Formatter
Opinionated Code Formatter. ... What is Prettier? An opinionated code formatter; Supports many languages; Integrates with most editors; Has few options ...
Read more >
Code Formatting and Code Comments - A Beginner's Guide to ...
Code formatting and comments are useful tools to make any markup easier to understand, maintain, and troubleshoot. Above you have learned basic ...
Read more >
What does it mean to format your code? - Quora
Format your code means you are making your code readable for your fellow team members (readers). The reader should be able to understand...
Read more >
Code Style and Formatting - The Turing Way
A coding style is a set of conventions on how to format code. For instance, what do you call your variables? Do you...
Read more >
Clean Code: Formatting (Source code structure) | Nerd For Tech
Why does code formatting matter? Code formatting is about communication, and communication is the first order of business for the competent ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found