Hi, You could also use the py braces stuff for this.Or you could cut out the code you want indented and paste it into a second buffer and then do your find and replace for newlines there.
Or, if you know how many consecutive lines you want indented (call it N lines), using vim you could do this:
place cursor on first line <esc> v -- for visual modeNj -- the number of lines N followed by the letter j to move down that number of lines > -- the greater than key will indent the default tab stop and shift width spaces.
Or, given START and END line numbers (again with vim): <esc> :START,ENDs/^/ /gwhich goes into command mode with <esc> and then replaces the ^ (start of line) with a space gloabally throughout the range START,END.
I've downloaded EdSharp today for the first time -- should have looked at it long time ago already. A funny thing was that I couldn't find a download link for it via Google because I was searching for Edge Sharp as in edge of the table ha ha -- what is screen readers doing to mankind.
It would be awesome if EdSharp could incorporate a vim mode so one would not need to do a lot of Ctrl + Alt etc. for navigation -- not even to mention having to move your hands to the arrow keys all the time.
Skimming through the documentation, I must say, EdSharp looks a nifty piece of work wow! Well done to everyone who helped make it.
Cheers Kerneels On 1/31/2011 7:49 AM, Jacob Kruger wrote:
Well, I see on edit menu, there's an indent option that seems to work on multiple, selected lines, but it uses a tab character - might be changeable, or alternatively, you could use it, and then try replace those tabs with spaces..?Stay well Jacob Kruger Blind Biker Skype: BlindZA '...fate had broken his body, but not his spirit...' ----- Original Message ----- From: "Alex Hall" <mehgcap@xxxxxxxxx> To: "programmingblind" <programmingblind@xxxxxxxxxxxxx> Sent: Monday, January 31, 2011 12:31 AM Subject: indent block of text with edSharp?Hi all, I am using Python, so indentation matters. I just realized that a couple hundred lines of code have to be inside a class, not outside of one. Is there a way I can basically select the code and tell edSharp to insert a space? I could use a find and replace for \n, replacing it with "\n ", but there is a lot of code in the file that does not need to be indented. Note that I use a space, not a tab, for my indents. Thanks. -- Have a great day, Alex (msg sent from GMail website) mehgcap@xxxxxxxxx; http://www.facebook.com/mehgcap __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind__________View the list's information and change your settings at //www.freelists.org/list/programmingblind
-- Kerneels Roos Cell: +27 (0)82 309 1998 Skype: cornelis.roos "There are only two kinds of programming languages in the world; those everyone complains about, and those nobody uses." __________View the list's information and change your settings at //www.freelists.org/list/programmingblind