tabs to 4 spaces
-
Chris Maunder wrote: Select Tab. Hit Ctrl+C. Hit Ctrl+H. Past tab into top box. Enter 4 spaces in bottom box. Hit 'Replace' That will not always work... What if there is a space and then a tab character? it will replace the 3-spaces tab with 4 spaces. -- LuisR ────────────── Luis Alonso Ramos Chihuahua, Mexico www.luisalonsoramos.com "Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein
Luis Alonso Ramos wrote: That will not always work... What if there is a space and then a tab character? it will replace the 3-spaces tab with 4 spaces. Uh oh! I hope there won't be too many such occurences. Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Select Tab. Hit Ctrl+C. Hit Ctrl+H. Past tab into top box. Enter 4 spaces in bottom box. Hit 'Replace' cheers, Chris Maunder
Chris Maunder wrote: Select Tab. Hit Ctrl+C. Hit Ctrl+H. Past tab into top box. Enter 4 spaces in bottom box. Hit 'Replace' Thanks Chris. I wonder why I didn't think of that :-) Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
did u try editplus Kannan
Kannan Kalyanaraman wrote: did u try editplus Nope! If it's not freeware, don't even give me the link Nish p.s. to play swf files locally you need to download flashpla.exe [search on google]
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Is there any tool to replace a tab with 4 spaces? It's a big pain to do that, manually!!! Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
did u try editplus Kannan
-
Kannan Kalyanaraman wrote: did u try editplus Nope! If it's not freeware, don't even give me the link Nish p.s. to play swf files locally you need to download flashpla.exe [search on google]
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
Nish - Native CPian wrote: Nope! If it's not freeware, don't even give me the link Oh ! I didn't know that you are looking for freeware :-) Anyway, you can withstand the pain for installing/removing you can try downloading the eval. thanks i got the flashplayer. Kannan
-
Kannan Kalyanaraman wrote: did u try editplus Nope! If it's not freeware, don't even give me the link Nish p.s. to play swf files locally you need to download flashpla.exe [search on google]
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
Nish - Native CPian wrote: Nope! If it's not freeware, don't even give me the link Try this excellent freeware: www.vim.org Haim
-
Is there any tool to replace a tab with 4 spaces? It's a big pain to do that, manually!!! Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Select Tab. Hit Ctrl+C. Hit Ctrl+H. Past tab into top box. Enter 4 spaces in bottom box. Hit 'Replace' cheers, Chris Maunder
Thanks ;-)
"When a friend hurts us, we should write it down in the sand, where the winds of forgiveness get in charge of erasing it away, and when something great happens, we should engrave it in the stone of the memory of the heart, where no wind can erase it" Nish on life [methinks]
-
Is there any tool to replace a tab with 4 spaces? It's a big pain to do that, manually!!! Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
You can do that in PERL in one line... $sourcecode =~ s/\t/ {4}/g; Assuming you have access to perl. Assuming you meant outside of your native code editor. (I can't vouch for the absolute accuracy of the above line. I haven't used PERL in a while.) Why not throw away a dime? I throw away ten pennies all the time.
-
Is there any tool to replace a tab with 4 spaces? It's a big pain to do that, manually!!! Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Because when displayed in HTML tabs within a <pre> block are quite wide (around 8 spaces) whereas 4 spaces inside a <pre> block is 4 spaces. I'm guessing Nish is editing his articles. cheers, Chris Maunder
-
Michael Dunn wrote: VC can do it. Edit->Advanced->Untabify Selection But I don't wanna untabify them. I want to replace the tabs with 4 spaces each. Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
Nish - Native CPian wrote: I want to replace the tabs with 4 spaces each. That's what "untabify" does. ;) --Mike-- Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines! My really out-of-date homepage Sonork - 100.10414 AcidHelm
-
Nish - Native CPian wrote: Nope! If it's not freeware, don't even give me the link Try this excellent freeware: www.vim.org Haim
vi for windows eh? Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Nish - Native CPian wrote: Nope! If it's not freeware, don't even give me the link Oh ! I didn't know that you are looking for freeware :-) Anyway, you can withstand the pain for installing/removing you can try downloading the eval. thanks i got the flashplayer. Kannan
Kannan Kalyanaraman wrote: Anyway, you can withstand the pain for installing/removing you can try downloading the eval. Or a crack ;-) Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
loket wrote: hmmm, and i who tought you where a programmer. :((
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
You can do that in PERL in one line... $sourcecode =~ s/\t/ {4}/g; Assuming you have access to perl. Assuming you meant outside of your native code editor. (I can't vouch for the absolute accuracy of the above line. I haven't used PERL in a while.) Why not throw away a dime? I throw away ten pennies all the time.
I do have perl access. But I wanted it as a sort of editor feature. Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Because when displayed in HTML tabs within a <pre> block are quite wide (around 8 spaces) whereas 4 spaces inside a <pre> block is 4 spaces. I'm guessing Nish is editing his articles. cheers, Chris Maunder
Chris Maunder wrote: I'm guessing Nish is editing his articles. :-O :-O :-O
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Jörgen Sigvardsson wrote: Hmm. I just don't get it, why are spaces better than tabs? They are not better or worse. But for CP articles, tabs cause horizontal scrolling!!! Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Nish - Native CPian wrote: I want to replace the tabs with 4 spaces each. That's what "untabify" does. ;) --Mike-- Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines! My really out-of-date homepage Sonork - 100.10414 AcidHelm
Michael Dunn wrote: That's what "untabify" does. Oh! Thanks, then :-) Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Jörgen Sigvardsson wrote: Hmm. I just don't get it, why are spaces better than tabs? They are not better or worse. But for CP articles, tabs cause horizontal scrolling!!! Nish
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.