Text wrap in editor
Moderator: Klaus
Text wrap in editor
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?
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
I don't think you can enable wrapping in the editor.
Sorry.
Sorry.
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki
http://runrevwidgets.com/wiki
Re: Text wrap in editor
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
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
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Text wrap in editor
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Text wrap in editor
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.
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.
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Text wrap in editor
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.:

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
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Text wrap in editor
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!
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!
Rob Glassman
ArkStar
ArkStar