Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
24 views

Tidy command that only fixes indent

I have a number of HTML files that contain snippets of HTML code (not full pages, so no body tags, etc). Unfortunately the HTML in those files is completely unindented. I'd like to run tidy to ...
0
votes
3answers
197 views

Unnecessary indenting in bash

I have been trying to paste text from one file to another in bash. I'm working in Putty. To be more clear, I have a file hotel.txt with some lines of text that are indented, thus have tabs and ...
3
votes
1answer
798 views

How can I show vertical indentations markers with emacs?

I'm looking for a emacs package or configuration that makes it possible to mark indentations with vertical lines, like in the following screenshot of Sublime Text:
1
vote
2answers
128 views

Vim indentation mapping: how to insert a line break that indents up the column I was at?

In Vim, I want to bind a key which will insert a newline and indent that newline up to the column where the cursor used to be. It's a little strange, so let me illustrate: Example: before and after, ...
0
votes
1answer
44 views

Calculating `indent` parameters automatically

How to automatically analyse a C/C++ source file and find out which indent parameters does suit more (for example, produce minimum of changes when filtered though indent)?
1
vote
1answer
166 views

vim fortran indentexpr issue

Strange issue here with getting indentexpr=FortranGetFreeIndent() to be set correctly. The first time I open a file (free form, of course), say new.f90, :set gives :set --- Options --- autoindent ...
1
vote
1answer
141 views

Disable indent selection by tab

When I select text in Visual Studio (C++ if it matters) and hit the tab key, instead of replacing the selected text with a tab, it instead indents the selected code. I really want to disable this ...
0
votes
2answers
89 views

Indent one level deeper rather than smart indent?

When in markdown-mode, I would like to disable smart indent. Instead, when I highlight a block of code and press TAB, I would like the block to be indented one level deeper, like how Sublime does it. ...
6
votes
3answers
4k views

How to use Tab key to indent within a textfield (instead of jumping to next element)? [duplicate]

An issue that bothers me a while, which I could never found out: Is there any key / shortcut that I can use to add an indent by TAB key within an input text field (HTML). Like the one I am writing ...
1
vote
3answers
163 views

Python auto indents when I copy/paste

I have tried to copy/paste my code into my code editor on my MAC. However, it auto indents everything. Is there a way to un-indent multiple lines at once?
0
votes
1answer
82 views

Emacs indents after a line starting with a hash in php-mode

I suspect this has to do something with the C/C++ indenting php-mode indenting is based on, however the hash symbol in PHP just indicates a single-line comment and is not a reason to indent the next ...
1
vote
1answer
536 views

nnoremap with vnoremap

with vim, I use object indent. and frequently I use this vii:!sort for sort a block with same indent. I try set this nnoremap nn <leader>ss vii:!sort<cr> but don't work, any ...