indent

Keep a UITableView section from showing up as editing while the table is in edit mode

I've got 2 sections in a UITableView. The tableview needs to stay in edit mode, but only the first section is editable. Specifically, I want the second section to display as it would if the table were not in edit mode (tableviewcells are their original widths in stead of the left side being in line with the cells of the first (editable...

Eclipse PDT: How do I get it to format my PHP arrays like VIM?

I've been struggling to get Eclipse to format my php arrays like vim indentation does. What eclipse does (press CTRL+SHIFT+F) <?php $array = array( 'key1' => 'value1', 'key2' => array( 'child_key1' => 'child_value1', 'child_key2' => 'child_value2', ), ); What vim does (press keys:gg=G) <?php $array = array( 'key1' => 'value1', '...

How to indent ActionScript associative array with VIM

I'm trying to use VIM to format AS3 codes, but have some problems for object definitions. VIM formats it as below: var object = { a : b, c : d } However what I want is var object = { a : b, c : d } In the "C-Indenting" part of VIM manual, it says Vim puts a line in column 1 if: * It s...

How to avoid misformatting of binary values with GNU indent?

When GNU indent (at least version 2.2.6 and 2.2.10) is used on the following code... void main () { int i = 0b01010101; } it will be reformatted into this ... void main () { int i = 0 b01010101; } Is there any option in indent that avoids this behavior? ...

Vim Ruby hash indentation

I am using Vim for Ruby development and I have some annoying problem. When I type Ruby hashes, I see the wrong indentation: { { #Here it is. } } How it is possible to resolve this? I am using akitaonrails vimfiles. ...

How to indent existing OCaml code

I have ~30.000 lines of badly indented OCaml code (including mly and mll files) and would like to indent them. I tried googling for variations of 'ocaml indent' the closest I can get is to use Omlet.vim and indent the code one line at a time (via C-f in insert mode). Is there a way to do the indentation for all the 30000 lines? ...

Why Unexpected Indent?

Why does this happen? def LoadPackageList(): try: #Attempts to load package list... Adds each neccessary attribute into array print("Loading Package List... please wait") packages = [] packagelisturl = os.getcwd() + "packages.list" dom = minidom.parse(urllib.urlopen(packagelisturl)) tr...

How to configure vim for TAB/ident like this?

I would use vim like this: Pressing TAB indent by 4 spaces (spaces not a TAB) Existing TAB should treated as 8 space wide Could you help me? ...

Strange input field indent in Safari

This code: <table cellpadding=0 cellspacing=0 border=0> <tr> <td bgcolor=red> <input type='text' /> </td> </tr> </table> Gives this output in Safari and all other browsers: The question is how to remove the indent that is highlighted with background color. Problem occurs in Safari only, CSS margin...

GSP Editing in Netbeans 6.8

Hello guys. I have a problem with Netbeans 6.8 and GSP pages. Format and indent working but provides invalid structure. Moreover Netbeans highlinging page directive as error. And code completion is not working too. Is it a bug or smth need to be fixed in my settings or Netbeans does not provide such features. In this archive you can ...

LaTeX "\indent" creating paragraph indentation / tabbing package requirement?

The LaTeX code provided below shows the usage of the command "\indent" as it appears in the document, but it does not produce the desired indentation within the document. Is there a specific package associated with the command "\indent" or "\="? I am asking for a step by step method of producing an indentation within a document for only ...

How do you indent *every* line of a <span> element?

I have the following HTML chunk: <span class='instruction_text'> Line 1<br> Line 2 </span> And the CSS declaration of instruction_text is: .instruction_text { margin-left: 70px; font-style: italic; color: #555; } The first line has a 70px margin as expected, but the next line starts with no indent. How can I make ALL of t...

Zend Studio code formatter problem with comments

Hi, i have Zend Studio 7.x, mostly use it for Zend Framework PHP and OOP JavaScript. When i run formatter on *.php file, often space is added after block of inline comments Before formatter run: <?php function someAction() { // some note // second line if ($foo) { } } ?> After: <?php function someAction() { // some note //...

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. You don't love it, it doesn't love you. Output Pure beauty. The code is nicely indented, has enough line breaks, cares for it's whitespace. Rather than viewing it in a webbrowser, you would like to d...

best way to show some text in textbox in Window application

i need to write a list of url in a textbox in a window apps but when i write it he was mixed like http://google.comhttp://google.comhttp://google.comi but i want to show clearly i already used "\n\r" method but he not worked are any sollution for it ...

editing the NetBeans source formatting standard

Is there any way of changing the standard by which NetBeans automatically formats the code when doing "Source->Format"? I seem to remember seeing this option somewhere, but I can't find anything about it. ...

How to fix broken automatic indentation in vim

Hi, I am trying to use vim 7.2 (on Windows XP) to automatically indent and format some VHDL and Matlab code. To do so I am trying to use the "gg=G" command. However this does not work properly. The code is not properly indented at all. To give you an example, I had the following source code, which was already properly indented: % This...

How do you enable file specific tab indent settings in VIM?

I believe there is a method to write a comment in a file that vim will use to override default tabbing and indent values. Can someone point me to information about this feature and how to use it? ...

like-vim emacs ruby indentation

ruby-mode from svn, looks equal to 1.1 version here is emacs indentation of hash User.all({ :joins => :account, :conditions => {:delete_at => nil} }) here is the same in vim User.all({ :joins => :account, :conditions => {:delete_at => nil} }) How to make emacs indent like vim in ruby-mode? ...

How do you use indent in vim for web development?

I'm starting to use Linux and Vim at work. I'm started reading vims documentation and creating my own .vimrc file and such. I'm a web developer working with HTML, XML, CSS, JS, Python, PHP, ZPT, DTML and SQL. I would like to have an indent feature like this one: for each language/set, a corresponding indent solution. So, in js, writin...