Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Indenting blocks of text with EVE

SOLVED
Go to solution
Jimson_1
Frequent Advisor

Indenting blocks of text with EVE

Hi,

To indent blocks of text with LSE is easy, just highlight the text and press PF1 .

Does anyone know how to do this in EVE?

Thanks

James
12 REPLIES
Wim Van den Wyngaert
Honored Contributor

Re: Indenting blocks of text with EVE

You can use learn.

Place cursor in the beginning of the line.
Do
learn
insert the number of blanks/tabs
place cursor in the beginning of the next line
control-r f20

Then type f20 for every line to indent.

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: Indenting blocks of text with EVE

Oh yes, to empty the blank lines, at the end press do and then
tpu eve$trim_buffer(current_buffer)

Wim
Wim
Jimson_1
Frequent Advisor

Re: Indenting blocks of text with EVE

Yeah, I'm aware of the learn function and indeed I have a key setup to do exactly what you mention.

I thought there may be a block function available that I hadn't come across before.

Thanks anyway.
Wim Van den Wyngaert
Honored Contributor

Re: Indenting blocks of text with EVE

Don't use/know LSE but you could take the source file of lse for the fill code (in sys$examples subdir lse ?), copy it in a new source file, ext * it in tpu and save a new section file. And then start with /sect=mysect.

Wim
Wim
Jimson_1
Frequent Advisor

Re: Indenting blocks of text with EVE

That sounds promising.

I'll let you know how I get on.

Thanks.
Wim Van den Wyngaert
Honored Contributor
Solution

Re: Indenting blocks of text with EVE

Except for the hardcoded ident, this could do.

edit it
ext *
save toto
exit

tpu /sect=toto

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: Indenting blocks of text with EVE

Except for the hardcoded ident, this could do.

edit it
ext *
save toto
exit

tpu /sect=toto

in tpu, select the range and give command tpu my_indent.

Wim
Wim
Jimson_1
Frequent Advisor

Re: Indenting blocks of text with EVE

Bingo!!

I assigned a key to the command and it does exactly what I want.

Thanks for your time

James
Wim Van den Wyngaert
Honored Contributor

Re: Indenting blocks of text with EVE

One for free : the unindent. That is, if you don't use tabs. It only unindents lines beginning with 3 blanks.

Wim
Wim
Jimson_1
Frequent Advisor

Re: Indenting blocks of text with EVE

You read my mind, I was looking for a way to do that.

OK, problem solved.

Thanks again
Jimson_1
Frequent Advisor

Re: Indenting blocks of text with EVE

Just another point.

When I have done the indent the text is no longer selected. So, if I want to indent the same text again I have to reselect it.

Any way around this?
Wim Van den Wyngaert
Honored Contributor

Re: Indenting blocks of text with EVE

Edit the sources and replace eve$selection(FALSE) by (FALSE,,,,FALSE).

Wim
Wim