View previous topic :: View next topic |
Author |
Message |
bornsoft Contributor
Joined: 19 Feb 2009 Posts: 113 Location: Germany
|
Posted: Sun Oct 25, 2009 7:56 pm Post subject: Great editor with VDS syntax highlighting |
|
|
hi,
if someone is looking for an additional vds-editor with syntax highlighting - here is a great one:
http://notepad-plus.sourceforge.net
it's called notepad++, has incredible features, supports many programming languages (of course
interface languages as well), and it's freeware.
there are loads of plugins (e.g. hexedit) for it and also it can run external programs, so it should
be possible by automating the vds-ide to run your scripts directly.
i made the syntax highlighting for vds, i dont know how to append a file to this post, so here it is:
(copy this code, save it to userDefineLang.xml and put it into notepad++ directory.
then in the program choose VDS from the language-menu. )
Code: |
<NotepadPlus>
<UserLang name="VDS" ext="dsc">
<Settings>
<Global caseIgnored="yes" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="no" words2="yes" words3="yes" words4="yes" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">@"0("0</Keywords>
<Keywords name="Folder+">#+</Keywords>
<Keywords name="Folder-">#-</Keywords>
<Keywords name="Operators">) , @ =</Keywords>
<Keywords name="Comment">1 1 2 2 0rem 0#</Keywords>
<Keywords name="Words1">treeview
BEEP
BINFILE
BITMAP
BROWSER
CLIPBOARD
CONSOLE
COMM
DDE
DIALOG
DIRECTORY
ELSE
ELSIF
END
ERROR
EXIT
EXITWIN
EXTERNAL
FREELIB
FILE
FONT
GOSUB
GOTO
HOTKEY
HTMLHELP
ICOTOBMP
IF
IMAGE
INFO
INIFILE
KILLTASK
LINK
LIST
LOADLIB
OPTION
PARSE
PLAY
RANDOM
REGISTRY
REPEAT
RUN
RUNH
RUNM
RUNZ
SEEKFILE
SHELL
SHIFT
STOP
TASKBAR
TIMER
TITLE
TRACE
UNTIL
WAIT
WEND
WARN
WHILE
WINDOW
WINHELP
WRITE
WRITE
WRITELINE
XMLDOC</Keywords>
<Keywords name="Words2">$</Keywords>
<Keywords name="Words3">% #INCLUDE #DEFINE #RESOURCE</Keywords>
<Keywords name="Words4">:</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" styleID="11" fgColor="0000FF" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFAA" fontName="Courier New" fontStyle="1" />
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFAA" fontName="Courier New" fontStyle="1" />
<WordsStyle name="KEYWORD1" styleID="5" fgColor="000000" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="10" />
<WordsStyle name="KEYWORD2" styleID="6" fgColor="FF00FF" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
<WordsStyle name="KEYWORD3" styleID="7" fgColor="FF0000" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" fontSize="10" />
<WordsStyle name="KEYWORD4" styleID="8" fgColor="000080" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="000000" bgColor="D7FFD7" fontName="Courier New" fontStyle="0" fontSize="10" />
<WordsStyle name="NUMBER" styleID="4" fgColor="FF00FF" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" fontSize="10" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="10" />
<WordsStyle name="DELIMINER1" styleID="14" fgColor="000000" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="10" />
<WordsStyle name="DELIMINER2" styleID="15" fgColor="0000FF" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" fontSize="10" />
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
</Styles>
</UserLang>
</NotepadPlus>
|
use #+ and #- for code-folding.
i hope you can enjoy like me.
marcus[/b] |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1564
|
Posted: Mon Oct 26, 2009 5:36 am Post subject: |
|
|
I have not tried it yet, but thanks for putting in the hard work and making this!! |
|
Back to top |
|
|
vdsalchemist Admin Team
Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Oct 26, 2009 12:08 pm Post subject: |
|
|
Why don't you like the VDS IDE? What features would you like it to have? Personally I don't really see the point of using a editor when you have access to an IDE that has been built to specifically support the language. I have used Notepad++ in the past but only when the Language I was using did not come with an IDE. Needless to say I don't use those languages any more. Also there are parts of the VDS IDE that is not that easy to automate like the project management parts. It's not impossible but would take more than just a few lines of code to write. _________________ Home of
Give VDS a new purpose!
|
|
Back to top |
|
|
bornsoft Contributor
Joined: 19 Feb 2009 Posts: 113 Location: Germany
|
Posted: Mon Oct 26, 2009 3:45 pm Post subject: |
|
|
hey,
@vdsalchemist
this doesn't mean that i don't like the vds ide at all. but for some rasons i wanna have an additional editor.
For example if i copy parts from one project to another. any file i open in the ide gets automatically added to the current
project an is opened with it next time.
and i like the folding feature in notepad++ very much, also that thin lines are drawn for if/end and repeat/until.
greetz
marcus |
|
Back to top |
|
|
arcray Valued Contributor
Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Tue Jan 25, 2011 4:50 am Post subject: |
|
|
Does't work for me! All I get at the end of the Language menu is 'User Defined' but clicking on it does not change anything. Not sure what is wrong. I have followed your instructions and had a look at the sourceforge forums, but no luck. _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Jan 25, 2011 7:35 pm Post subject: |
|
|
Works for me.
I think he may have been incorrect in the location where the file you save needs to be. Do not put it in the program directory, put it in the appdata directory for for the program, such as on Windows 7, the path would be:
C:\Users\UserNameHere\AppData\Roaming\Notepad++\userDefineLang.xml _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
arcray Valued Contributor
Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Tue Jan 25, 2011 11:10 pm Post subject: |
|
|
Ah, yes. That works.
Only the following buggers up the display:-
Where you want to add a comma between two address portions:
Code: | %%Address = %%Address1", "%%Address2 |
upsets the colour of all the subsequent code as it sees the comma as a code delimiter rather than just part of the text (as it should be within "apostrophes") _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
Back to top |
|
|
bornsoft Contributor
Joined: 19 Feb 2009 Posts: 113 Location: Germany
|
Posted: Wed Jan 26, 2011 2:00 am Post subject: |
|
|
@garrett
I'm still working on XP, so I can't say, but I'd be really annoyed, if an open source software would save its config files unasked on my system drive.
The program doesn't need to be installed and runs out of an unzipped directory, so I wonder how the config files get there.
greetings |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jan 26, 2011 5:56 am Post subject: |
|
|
bornsoft wrote: | @garrett
I'm still working on XP, so I can't say, but I'd be really annoyed, if an open source software would save its config files unasked on my system drive.
The program doesn't need to be installed and runs out of an unzipped directory, so I wonder how the config files get there.
greetings | .
I used the installer version of it, so it installed all the config files into that directory. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
|