How do you indent preprocessor statements?

Just because preprocessing directives are “normally” not indented is not a good reason not to indent them: #ifdef __WIN32__ #include <pansen_win32> #else #include <..> #ifdef SOMEOTHER stmts #endif maybe stmts #endif If you frequently have multiple levels of nesting of preprocessing directives, you should rework them to make them simpler.

Emacs: How to keep the indentation level of a very long wrapped line

The package adaptive-wrap, which can be installed via the ELPA packaging system, should do what you want. After having installed the package, just run the following commands: M-xvisual-line-modeRET (to wrap long lines) M-xadaptive-wrap-prefix-modeRET (to make wrapped lines indent nicely) I also have the following snippet in my init.el file to automatically activate adaptive-wrap-prefix-mode along with … Read more

How to create an all browser-compatible hanging indent style in CSS in a span

<span> is an inline element. The term hanging indent is meaningless unless you’re talking about a paragraph (which generally means a block element). You can, of course, change the margins on <p> or <div> or any other block element to get rid of extra vertical space between paragraphs. You may want something like display: run-in, … Read more