So far the only idea is to indent everything and use a graph to shot the nesting level? If we got rid of indentation, I'd like to think it was replaced by something that took less space, not more.
The context in the original question makes clear: the OP is not looking to save space. He wants to take out the structural (tabbed) spacing inherent from the nesting of XML in order to make it visually clear where documents have manually-inserted whitespace. This is actually a really interesting question, although I'm not sure the answers there are very helpful. I would prefer seeing the code actually indented, and t…
How can a code editor hint at code nesting level without indentation?
11–20 of 25 posts
Re: How can a code editor hint at code nesting level without indentation?
#12Of course it'd also have to take up less space than the indentations themselves to be beneficial (assume 2 spaces). Still, I feel like there's some real potential here that could be used in something like cloud9ide.com since the majority of developers there will probably be node.js devs.
Re: How can a code editor hint at code nesting level without indentation?
#13Earlier quoted context omitted.
The context in the original question makes clear: the OP is not looking to save space. He wants to take out the structural (tabbed) spacing inherent from the nesting of XML in order to make it visually clear where documents have manually-inserted whitespace. This is actually a really interesting question, although I'm not sure the answers there are very helpful. I would prefer seeing the code actually indented, and t…
It's been a while since I used an IDE (instead of vim), but don't most of them support code-folding that provides a light gray bracket for a block of code (usually with a collapsible indicator at the top)? Or is the effect you want slightly different?
Re: How can a code editor hint at code nesting level without indentation?
#14Re: How can a code editor hint at code nesting level without indentation?
#15I believe Xcode 4 does something similar to the heatmaps shown here, although it does everything vertically, in shades of gray. You can sort of see it in this screenshot - look in the left-hand margin of the code editing window. http://www.neowin.net/images/uploaded/xcode4.jpg
I get a 403 forbidden (check your permissions maybe?)
Re: How can a code editor hint at code nesting level without indentation?
#16I believe Xcode 4 does something similar to the heatmaps shown here, although it does everything vertically, in shades of gray. You can sort of see it in this screenshot - look in the left-hand margin of the code editing window. http://www.neowin.net/images/uploaded/xcode4.jpg
I get a 403 forbidden (check your permissions maybe?)
Re: How can a code editor hint at code nesting level without indentation?
#17So far the only idea is to indent everything and use a graph to shot the nesting level? If we got rid of indentation, I'd like to think it was replaced by something that took less space, not more.
The context in the original question makes clear: the OP is not looking to save space. He wants to take out the structural (tabbed) spacing inherent from the nesting of XML in order to make it visually clear where documents have manually-inserted whitespace. This is actually a really interesting question, although I'm not sure the answers there are very helpful. I would prefer seeing the code actually indented, and t…
Good luck with that, considering I find it hard to manually decide how to indent mixed PHP, HTML and Javascript code. I can't imagine an automatic tool having any success.
Re: How can a code editor hint at code nesting level without indentation?
#18Earlier quoted context omitted.
The context in the original question makes clear: the OP is not looking to save space. He wants to take out the structural (tabbed) spacing inherent from the nesting of XML in order to make it visually clear where documents have manually-inserted whitespace. This is actually a really interesting question, although I'm not sure the answers there are very helpful. I would prefer seeing the code actually indented, and t…
He wants automatic detection of nesting? Good luck with that, considering I find it hard to manually decide how to indent mixed PHP, HTML and Javascript code. I can't imagine an automatic tool having any success.
Re: How can a code editor hint at code nesting level without indentation?
#19Earlier quoted context omitted.
The context in the original question makes clear: the OP is not looking to save space. He wants to take out the structural (tabbed) spacing inherent from the nesting of XML in order to make it visually clear where documents have manually-inserted whitespace. This is actually a really interesting question, although I'm not sure the answers there are very helpful. I would prefer seeing the code actually indented, and t…
He wants automatic detection of nesting? Good luck with that, considering I find it hard to manually decide how to indent mixed PHP, HTML and Javascript code. I can't imagine an automatic tool having any success.