Top "Indentation" questions

Indenting is used to organize code by indicating blocks, closures, conditionals, and other constructs.

Indentation with DOMDocument in PHP

I'm using DOMDocument to generate a new XML file and I would like for the output of the file to …

php xml whitespace indentation domdocument
How to fix Pylint "Wrong hanging indentation" and PEP8 E121?

I am trying to properly indent following piece of code: RULES_LIST = [ ('Name1', 1, 'Long string upto 40 chars'), ('Name2', 2, …

python indentation pylint pep8
Visual Studio, per solution indentation settings

I'm working on a couple of different things and some use tabs, some use 2 spaces for indents, another users 4 spaces …

visual-studio-2008 indentation
How to automatically indent the JavaScript code in Aptana Studio?

Previously I used Eclipse for PHP and Java development, and I liked the command Ctrl + i to automatically indent the …

javascript aptana indentation auto-indent
How to apply javascript formatting to .json files?

The Ctrl + Shift + F hotkey in Eclipse can format a file. It doesn't work for .json files. How to make …

json eclipse formatting indentation auto-indent
Wanted: Command line HTML5 beautifier

Wanted A command line HTML5 beautifier running under Linux. Input Garbled, ugly HTML5 code. Possibly the result of multiple templates. …

html command-line indentation pretty-print
UITableViewCell in ios7 now has gaps on left and right

I have a UITableView where, in ios6, my custom cell stretched completely to the left and right sides of the …

uitableview ios7 indentation custom-cell
Is it possible to set indent settings in Xcode per project (or per file, even)?

Some projects I work in uses tab key settings that equate to 3 or 4 spaces and another wants actual tabs. Another …

xcode tabs indentation
Indent several lines in Emacs

In my Emacs, space key can indent correctly 1 line. If I select several lines, and press space key, the indenting …

emacs indentation
Xcode: Adjusting indentation of auto-generated braces?

Code auto-generated by Xcode seems to have the opening brace on the same line by default: @interface Controller : NSObject { } I'd …

xcode indentation