General Chat
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Codewalkers ForumsGeneralGeneral Chat

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Old July 30th, 2004, 01:39 AM
starfoxtj starfoxtj is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 222 starfoxtj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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

Reply With Quote
Old July 30th, 2004, 02:31 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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..

Reply With Quote
Old July 30th, 2004, 02:32 AM
starfoxtj starfoxtj is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 222 starfoxtj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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

Reply With Quote
Old July 30th, 2004, 04:26 AM
galen galen is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: chesepeake, va, usa
Posts: 35 galen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 31 sec
Reputation Power: 8
Send a message via AIM to galen Send a message via Yahoo to galen
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.

Reply With Quote
Old July 30th, 2004, 04:27 AM
starfoxtj starfoxtj is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 222 starfoxtj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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 ;)

Reply With Quote
Old July 30th, 2004, 11:26 PM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Message Moved

Thread moved from 'PHP Coding' to 'General Chat' by zombie.

Reason:

Reply With Quote
Old January 15th, 2005, 05:59 PM
puntloos puntloos is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 4 puntloos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Old January 30th, 2005, 08:21 PM
jam wil's Avatar
jam wil jam wil is offline
James Williams
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Calgary // Kelowna
Posts: 377 jam wil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 15 m 7 sec
Reputation Power: 8
RE: How to indent multiple lines of code at once?

wow, that right there made me never ever want to try vi...

Reply With Quote
Reply

Viewing: Codewalkers ForumsGeneralGeneral Chat > How to indent multiple lines of code at once?


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap