Operating System - OpenVMS
1748078 Members
5256 Online
108758 Solutions
New Discussion юеВ

Re: 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 12
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