Comments (4)
This is now out in v0.10.0
. Note: in order to convince CommandBox to update to that version you will either need to uninstall and then reinstall - or explicitly install that version. @bdw429s pointed out to me that with semver minor version bumps with a major version of 0
are treated as major version updates and so are not automatic upgrades.
from commandbox-cfformat.
I have been working on this. I took a look at what prettier does with JS files and it looks to me like it renders block comments as is, unless every line starts with a *
, in which case it aligns the lines on the *
's. So my current plan is to create a new settings for this sort of alignment: https://github.com/jcberquist/commandbox-cfformat/blob/master/reference.md#commentasterisks
By default it will copy prettier and align all lines on the *
, but you can disable this if you want. Absent the leading asterisks, comments should be renderered as is without being reformatted.
from commandbox-cfformat.
Thanks for raising the issue. If and how to format comments is something I have been unsure about. So it is helpful to see this issue - may I ask what doc-block extension you use? I wonder if I should just switch doc comments to be formatted the way you have, make it an option, or just leave them untouched.
from commandbox-cfformat.
The extension is Document This. I tried a couple of other extension as well. The extensions all work until the document gets reformatted. I then have to add the extra leading space or delete the comment if I want make any changes.
Not a big deal but, in general, I'd prefer comments don't get reformatted anyway.
from commandbox-cfformat.
Related Issues (20)
- Subsequent lines of a multiline statement should be indented. HOT 2
- cfformat check doesn't handle Unicode with BOM files HOT 1
- Forgebox installation is broken HOT 1
- DocBox commenting formatting HOT 6
- struct element alignment HOT 5
- Tag type comments converted to script comments erroneously HOT 2
- annotation with a `:` is adding a space HOT 2
- Latest version removing indendations on Comments HOT 1
- Latest version removing comments HOT 1
- CommandBox no longer reloads on module installation HOT 8
- preserve case in doc-block? HOT 2
- Indent content between cfscript tags HOT 3
- Ignoring blocks/tags via settings vs comment HOT 2
- Property alignment incorrect when the number of attributes differs
- annotation with a - is adding a space
- tag-check and single tags that are not self-closing HOT 3
- abstract component modifier injects spaces
- Lines are improperly outdented
- Method Multiline formatting/highlighting when inital element is not a method HOT 1
- CSS styles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commandbox-cfformat.