MaxStudio Posted March 4, 2009 Share Posted March 4, 2009 How come when I click on Edit Script all of my code has all the spaces, returns, and indentations removed!? if I try to recompile it gives me errors! I then have to delete everything and re-paste it all into the script editor. How do I get the script editor to not remove my spaces, returns, and indentations? Quote Link to comment
MaxStudio Posted March 4, 2009 Author Share Posted March 4, 2009 I conducted a short test. One script I copy and pasted from a text editor. The second script I typed the same code directly into the script editor. After compiling and trying to edit, I have noticed that the script that was copy and pasted removed all spaces, returns, and indentations. The script that was typed directly into the script editor retained all spaces, returns, and indentations. Does this mean I have to type all of my scripts directly into the script editor!? Quote Link to comment
Jonathan Pickup Posted March 4, 2009 Share Posted March 4, 2009 i often use BBEdit for scripts, and i don't think I have your problem Quote Link to comment
Pat Stanford Posted March 4, 2009 Share Posted March 4, 2009 I think it depends on what format the text editor is using. I don't think the VS Editor is Unicode Aware. That means that if you use something like Word as your editor, it is not using the standard codes for some characters and therefore you are losing the formatting. If you use a programmers editor like TextWrangler (Free), BBEdit or MarsEdit, you should be able to copy and paste the data. The other option is to just {$INCLUDE} the data from the text file into the script and only use the VS Editor for the INCLUDE line. Quote Link to comment
MaxStudio Posted March 4, 2009 Author Share Posted March 4, 2009 TEXT WRANGLER DID IT!!!!!!!!!!!!!!!!!! Pat rules the vectorscripting world!!!!!!! Quote Link to comment
Dieter @ DWorks Posted March 4, 2009 Share Posted March 4, 2009 Does anyone knows such a program for windows? I find the VS editor not so good, It would be more helpfull to get colored keywords etc... Quote Link to comment
MaxStudio Posted March 4, 2009 Author Share Posted March 4, 2009 DWorks, I found this website maybe it will lead you to something http://www.thefreecountry.com/programming/editors.shtml Quote Link to comment
Pat Stanford Posted March 4, 2009 Share Posted March 4, 2009 I have not used it, but I have heard good things about UltraEdit. Quote Link to comment
Dieter @ DWorks Posted March 5, 2009 Share Posted March 5, 2009 Thx for the info. I tried two editors and both had the some problem: When I open a .vso file, it's unreadable. There are strange characters everywhere. Is this normal? And what should I do to get it correct? Quote Link to comment
Pat Stanford Posted March 5, 2009 Share Posted March 5, 2009 VSO files include some binary data so they can't be edited directly except using the Vectorscript Plug-in Editor. What you can do is Use the PIO editor and copy/paste the text into the external editor. Then change the script in the PIO to use an {$INCLUDE} statement linking to the external file. See the Vectorscript Reference section on Compiler Directives for more information. Quote Link to comment
Dieter @ DWorks Posted March 5, 2009 Share Posted March 5, 2009 Thx again. I tried some files and it goes ok, except for the folding/unfolding of code blocks. It seems unpossible to get this right because everything in VectorScript ends with END;! So setting up this feature in one of the editors fails with code from Vectorscript, or am I missing something? So the only thing I get is syntax highlighting. I think I'm going to stick with the VS editor because the only thing I want is the (un)folding. Quote Link to comment
Dieter @ DWorks Posted March 7, 2009 Share Posted March 7, 2009 I tried some others and I always can config the syntax highlighting. But I can't get the code block (un)folding right. So if any one has done this before for windows, I would like some help on this. Quote Link to comment
_c_ Posted March 21, 2009 Share Posted March 21, 2009 Did you try NotePad ++? This is what I use under Win. Is a fine text editor with folding. orso Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.