|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to indent multiple lines of code at once?
OK I have spent hours searching.
I have looked at and installed over 20 programs, none work! How how how can I indent (add a tab before) multiple llines at once? I am working on some scripts and I have over 1000 lines I need to indent. It would take hours to do it manually each time I add a brace |
|
#2
|
|||
|
|||
|
RE: How to indent multiple lines of code at once?
do you want to do this in your editor, or from the script?
any decent editor will enable you to select the lines you want to indent, and press tab, or something similar.. |
|
#3
|
|||
|
|||
|
RE: How to indent multiple lines of code at once?
In the editor.
I cant find a program to do it. I am currently using notepad, its ok, but cant indent |
|
#4
|
|||
|
|||
|
RE: How to indent multiple lines of code at once?
try replacing new line caharacter with a newline caharacter+tab. i can do it in ultraedit.
|
|
#5
|
|||
|
|||
|
RE: How to indent multiple lines of code at once?
Nvm I found a program.
Edit Plus2. Just highlight what you want, and press tab. Ahh, MUCH easier! Thanks for the help though ;) |
|
#6
|
|||
|
|||
|
Message Moved
Thread moved from 'PHP Coding' to 'General Chat' by zombie.
Reason: |
|
#7
|
|||
|
|||
|
RE: How to indent multiple lines of code at once?
(better late than never)
Well with vi its kinda easy :<startline>,<endline>s/^I/^I^I/g or, if currently you've got spaces instead of tabs :<startline>,<endline>s/ /^I^I/g note: to create a proper "^I" you need to hit: control-v, then the tab key. |
|
#8
|
|||
|
|||
|
RE: How to indent multiple lines of code at once?
wow, that right there made me never ever want to try vi...
|
![]() |
| Viewing: Codewalkers Forums > General > General Chat > How to indent multiple lines of code at once? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|