Page 1 of 1
Text wrap in editor
Posted: Thu Dec 03, 2009 2:36 am
by xeir
Here's a simple one perhaps, or have I simply missed the option somewhere?
Is there a way to enable text/line/word wrap in the editor?
It would make editing a lot easier within Rev if you could see the entire line in a glance instead of having to scroll left and right constantly.
I know there is the character to soft wrap a line manually, but it's not the same, and quite honestly it is cumbersome.
Any thoughts?
Re: Text wrap in editor
Posted: Fri Dec 04, 2009 9:38 am
by ale870
I don't think you can enable wrapping in the editor.
Sorry.
Re: Text wrap in editor
Posted: Fri Dec 04, 2009 3:37 pm
by malte
You would need to patch the revScriptEditor stack. I recommend against it, but it is possible.
set the dontwrap of fld "script" of stack "revSETemplate" to false
If you like the behaviour then save that stack. However. It is patching the IDE. Maybe not a good idea.
Cheers,
Malte
Re: Text wrap in editor
Posted: Fri Dec 04, 2009 5:51 pm
by FourthWorld
The difficulty with soft wraps in a script editor is that in RevTalk line endings have a functional purpose, delimiting the end of a statement. While introducing a soft wrap won't affect execution, it will mean that the visible representation of the script differs from what it actually is, which could complicate reading the script to track down errors.
Re: Text wrap in editor
Posted: Mon Feb 22, 2010 8:24 pm
by xeir
Hey guys, appreciate the info, forgot to get back and put up a response as I'd been trying out the external editor form the bundle. It has it's ups and downs.
malte -- thanks, may give that a try. I scanned the IDE code in the past but did not find anything that caught my attention.
Forthworld -- I think the tab indent is typically enough to get the idea of line separation, yet I suppose it's possible to also include a symbol/graphic a the end of the soft wrapped lines to fully indicate what is occurring.
Thanks again.
Re: Text wrap in editor
Posted: Mon Feb 22, 2010 10:36 pm
by FourthWorld
I think I'm just old: I tend to limit my script lines to about 80 characters out of habit.
If it helps, you can continue lines with the "\" character, e.g.:
Code: Select all
if this true \
AND this is true \
OR this is not true then
blahBla
end if
Re: Text wrap in editor
Posted: Mon Feb 22, 2010 10:39 pm
by RRobert
tRev got a Wrap Source code option by the way.
Robert
Re: Text wrap in editor
Posted: Sun Mar 07, 2010 8:47 pm
by arkstar
tRev is an AWESOME product. As a newbie, it has made learning, and working in Rev a million times better and easier!
Go to reveditor.com. Watch the videos. Believe me, you won't regret it!
The editor in Rev should be replaced with tRev!
And that's all I have to say about that!