Jump to content
Developer Wiki and Function Reference Links Read more... ×
Sign in to follow this  
brudgers

Vectorscript Development Tools for Windows: Notepad++

Recommended Posts

Notepad++ can be downloaded from CNET:

http://download.cnet.com/Notepad/3000-2352_4-10327521.html?tag=mncol

The sourceforge page is here:

http://notepad-plus.sourceforge.net/uk/about.php

1. I've linked userdefinelang.xml which includes settings for vectorscript keywords, operators, etc.

Copy it to %appdata%\notepad++

You can open this folder by entering %appdata%\notepad++ in the run box on the start menu.

userdefinelang.xml also includes ~start and ~finish for folding. I'll probably write some vectorscript to parse this out in the next few days.

2. I've linked vectorscript.xml which governs auto completion.

It should be copied to c:\program files\notepad++\plugins\APIs ? or program files (x86) if you're running an x64 flavor of windows.

Links

1. userDefineLang.xml

2. vectorscript.xml

Edited by brudgers

Share this post


Link to post

Hello,

Maybe i have dome something wrong.

I downloaded the files and i think i put them in there proper place. i see the language choice for vectorscript, but when i select it only shows green text for my scripts. I sure would love to have this working. What could i have done wrong? Any clues???

I think it may be putting on of the files in the wrong place.

Thanks in Advance

Jeff Miller

Windows XP SP3

VW2009 SP4

Share this post


Link to post

I've replaced userdefinelang.xml on the server.

There were several corrections.

1. Made keywords case insensitive.

2. Comment line { } and block comments (* *) were entered correctly.

3. File association with VSS was added.

It should format existing files correctly now.

And it should automatically format .vss files.

Edited by brudgers

Share this post


Link to post

Brudgers,

thx for all this, but I think it's not working here correctly. All numbers are really small and the folding option isn't seeing the 'END;'. So it's not folding correctly.

What can I do about this?

DWorks

Share this post


Link to post

I've made some changes, I hope Brudgers don't mind...

These are the things I've changed:

- every Begin-End can be fold

- every Case-End van be fold

- all numbers will be recognised

- all strings between '' will be recognised.

- some colors has changed

Any errors and/or adjustments are very welcome.

The file is a zip file, so please replace the .pdf by .zip!

Share this post


Link to post

Hey all,

Is there a Mac equivalent of this hidden away on the interwebs? I've briefly googled but nothing solid/recommended as yet.

J

Share this post


Link to post

James--

If you're looking for free, try TextWrangler (Mac App Store) with the VSS language module:

http://www.vectorlab.info/index.php?title=VSS_Language_Module_for_BBedit_%26_TextWrangler

This will also work with BBEdit (paid).

I tend to use TextMate (http://www.macromates.com) with the Vectorscript language bundle (https://github.com/textmate/vectorscript.tmbundle ... I'm the author of the original bundle, and I shamefully haven't gotten around to stitching in any changes to the official repository since 2007, so email me if you need it).

Share this post


Link to post

In the one I posted, folding should work. You have to make sure though to place your BEGIN and END; as first words. So this doesn't work normally:

IF ... THEN BEGIN

END;

While this does work:

IF ... THEN

BEGIN

END;

I think a newer version can be found on the Notepad++ site.

Share this post


Link to post

Hello,

It seems that this comment type is not taken into account :

(*

Comments

*)

I sometimes use them because the other comment type can be included without creating errors.

Share this post


Link to post
Hello,

It seems that this comment type is not taken into account :

(*

Comments

*)

The brackets are wrong, you should use: {* Multi-line comments *}

Share this post


Link to post

Well that's interesting because : (* Comments *) works also.

I found this in the VS language guide and I used it lots of times.

The alternate syntax is parenthesis asterisk:

(* *)

This can be used to comment out a block of the script that may already contain comments.

For example:

(* block comment

{Some comment line.}

{Another comment.}

*)

Share this post


Link to post
Well that's interesting because : (* Comments *) works also.

I found this in the VS language guide and I used it lots of times.

The alternate syntax is parenthesis asterisk:

(* *)

This can be used to comment out a block of the script that may already contain comments.

For example:

(* block comment

{Some comment line.}

{Another comment.}

*)

I did not know this. Thx for this, I need this from time to time. It will be faster now to comment out for debugging purposes.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×