XY Script: Color Syntax for EditPadPro

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

Meh.. just discovered I accidentally omitted Rename from the clipbook (and also the reasons why I quit using Google's code hosting for things like this).

Anyhow the TCL has been updated, and both files have been moved into their repository so the update links are:
The TextPad syntax highlighter definitions is here:
http://xyplorer.googlecode.com/svn/trun ... plorer.syn
The Textpad clipbook is here:
http://xyplorer.googlecode.com/svn/trun ... plorer.tcl
Last edited by TheQwerty on 10 Mar 2008 16:05, edited 2 times in total.

admin
Site Admin
Posts: 65390
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

TheQwerty wrote:Meh.. just discovered I accidentally omitted Rename from the clipbook (and also the reasons why I quit using Google's code hosting for things like this).

Anyhow the TCL has been updated, and both files have been moved into their repository so they are here instead:
http://code.google.com/p/xyplorer/source/browse/trunk
Again, the .syn is the TextPad syntax highlighter definitions.
And the .tcl is the TextPad clipbook.
I can't download them this time. :? How to do it?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

admin wrote:
TheQwerty wrote:Meh.. just discovered I accidentally omitted Rename from the clipbook (and also the reasons why I quit using Google's code hosting for things like this).

Anyhow the TCL has been updated, and both files have been moved into their repository so they are here instead:
http://code.google.com/p/xyplorer/source/browse/trunk
Again, the .syn is the TextPad syntax highlighter definitions.
And the .tcl is the TextPad clipbook.
I can't download them this time. :? How to do it?
Hmmm.. try these then:
The TextPad syntax highlighter definitions is here:
http://xyplorer.googlecode.com/svn/trun ... plorer.syn
The Textpad clipbook is here:
http://xyplorer.googlecode.com/svn/trun ... plorer.tcl
Last edited by TheQwerty on 10 Mar 2008 16:05, edited 1 time in total.

admin
Site Admin
Posts: 65390
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

TheQwerty wrote:
admin wrote:
TheQwerty wrote:Meh.. just discovered I accidentally omitted Rename from the clipbook (and also the reasons why I quit using Google's code hosting for things like this).

Anyhow the TCL has been updated, and both files have been moved into their repository so they are here instead:
http://code.google.com/p/xyplorer/source/browse/trunk
Again, the .syn is the TextPad syntax highlighter definitions.
And the .tcl is the TextPad clipbook.
I can't download them this time. :? How to do it?
Hmmm.. try these then:
TextPad clipbook:
http://xyplorer.googlecode.com/svn/trunk/XYplorer.tcl
and
TextPad syntax highlighter definitions:
http://xyplorer.googlecode.com/svn/trunk/xyplorer.syn
Works, thanks!

eurytos
Posts: 200
Joined: 29 Jan 2008 15:53

Post by eurytos »

This is completely off topic and I apologize. But, anytime I hear mention of text editing software I always feel the need to plug notepad++.


If you get a chance to check it out I highly recommend it.

http://notepad-plus.sourceforge.net/uk/site.htm


Since it seems like a fair amount of the posters here are familiar with EditPad I may have to check it out to see what it is all about :)

JustinF
Posts: 358
Joined: 28 Jun 2005 23:47
Location: Omaha, Nebraska, USA

Post by JustinF »

Well, I was just messing around with the scripting using my text editor of choice (PSPad) and decided to make up a syntax highlighter file and also a clip definition file. So, if there are any other PSPad users out there you can go grab them here:
http://www.box.net/shared/ythdry3w44

*Sorry, but this is the first time I've made either a syntax file or a clip definition file so if they're not very good I apologize.
Justin
Windows 7 Professional

admin
Site Admin
Posts: 65390
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

JustinF wrote:Well, I was just messing around with the scripting using my text editor of choice (PSPad) and decided to make up a syntax highlighter file and also a clip definition file. So, if there are any other PSPad users out there you can go grab them here:
http://www.box.net/shared/ythdry3w44

*Sorry, but this is the first time I've made either a syntax file or a clip definition file so if they're not very good I apologize.
Wow, looks like a lot of good work! :D

May I put them to the support page with your name attached?

JustinF
Posts: 358
Joined: 28 Jun 2005 23:47
Location: Omaha, Nebraska, USA

Post by JustinF »

admin wrote:
JustinF wrote:Well, I was just messing around with the scripting using my text editor of choice (PSPad) and decided to make up a syntax highlighter file and also a clip definition file. So, if there are any other PSPad users out there you can go grab them here:
http://www.box.net/shared/ythdry3w44

*Sorry, but this is the first time I've made either a syntax file or a clip definition file so if they're not very good I apologize.
Wow, looks like a lot of good work! :D

May I put them to the support page with your name attached?
Of course! I would feel honored. :D

The descriptions in the definition file were taken pretty much straight from the XYwiki...I hope that's okay???
Justin
Windows 7 Professional

admin
Site Admin
Posts: 65390
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

JustinF wrote:
admin wrote:
JustinF wrote:Well, I was just messing around with the scripting using my text editor of choice (PSPad) and decided to make up a syntax highlighter file and also a clip definition file. So, if there are any other PSPad users out there you can go grab them here:
http://www.box.net/shared/ythdry3w44

*Sorry, but this is the first time I've made either a syntax file or a clip definition file so if they're not very good I apologize.
Wow, looks like a lot of good work! :D

May I put them to the support page with your name attached?
Of course! I would feel honored. :D

The descriptions in the definition file were taken pretty much straight from the XYwiki...I hope that's okay???
Yep, I think so. Ask jacky...

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

admin wrote:
JustinF wrote:The descriptions in the definition file were taken pretty much straight from the XYwiki...I hope that's okay???
Yep, I think so. Ask jacky...
No it certainly is not! Is there's one thing the XYwiki has not been made for, it's to help people and hopefully get them to learn more about XY. If you guys are going there to learn about your favorite application then we have all failed! :evil: :P

(Just to be clear, cause you never know: of course it's okay. I mean the wiki is here to hopefully help people make the most of XY, and if you want to use PSPad to do that while obviously EditPadPro is a better choice, well, who am I to stop you? :P ;))
Proud XYplorer Fanatic

admin
Site Admin
Posts: 65390
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

JustinF wrote:Well, I was just messing around with the scripting using my text editor of choice (PSPad) and decided to make up a syntax highlighter file and also a clip definition file. So, if there are any other PSPad users out there you can go grab them here:
http://www.box.net/shared/ythdry3w44
Having no idea of PSPad, what is a "clip definition file"?

bergfex
Posts: 188
Joined: 07 Sep 2007 19:06

Post by bergfex »

jacky wrote:...and if you want to use PSPad to do that while obviously EditPadPro is a better choice...
Well, hardcore coders use VIM anyway. You know, the "a tool and not a toy" approach. :wink:

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

admin wrote:Having no idea of PSPad, what is a "clip definition file"?
Assuming it's similar to TextPad's clippings book. It displays a list of items that can be double clicked to insert at the cursor or around the highlighted text.

JustinF
Posts: 358
Joined: 28 Jun 2005 23:47
Location: Omaha, Nebraska, USA

Post by JustinF »

admin wrote:
JustinF wrote:Well, I was just messing around with the scripting using my text editor of choice (PSPad) and decided to make up a syntax highlighter file and also a clip definition file. So, if there are any other PSPad users out there you can go grab them here:
http://www.box.net/shared/ythdry3w44
Having no idea of PSPad, what is a "clip definition file"?
I used it for "code completion" for the various methods (addstr, substr, etc.). CTRL+Space will bring up a list of the XYScript methods. Choosing one from the pop-up window will also stub in the variables. But I _think_ you can also use it to insert if-else statements and such, although I'm not for sure on that one.
Justin
Windows 7 Professional

Pagat
Posts: 306
Joined: 09 Oct 2007 21:23
Location: Austria

Post by Pagat »

Since my editor of choice is UltraEdit, i played around with the (syntax highlighting) wordfile and came up with this first version:

Code: Select all

/L20"XYplorer Script" Nocase Line Comment = // Escape Char = \ String Chars = "' File Extensions = XYS
/Delimiters = ~!^&*()-+=|\/{}[]:;"'` ,	.
/Function String = "%\"*"
/Open Brace Strings =  "{" "(" "["
/Close Brace Strings = "}" ")" "]"
/Open Fold Strings = "{"
/Close Fold Strings = "}"
/C1"Control Structures" STYLE_KEYWORD
;

/C2"Built-in Variables" STYLE_VARIABLE
<base> <clipboard> <curbase> <curext> <curfolder> <curitem> <curname> <curpath> <curpath_s> <curver> <focitem> <items> <item1> <item2> <srcbase> <srcext> <srctitle> <srcver> <xyexe> <xydata> <xypath>
** <m <d <srcm

/C3"Environment Variables" STYLE_VARIABLE
%allusersprofile% %appdata% %commonprogramfiles% %computer% %desktop% %desktopreal% %net% %personal% %personalreal% %programfiles% %systemdrive% %systemroot% %temp% %tmp% %userprofile% %windir% %winsysdir%

/C4"Variables" STYLE_VARIABLE
** $

/C5"Operators" STYLE_OPERATOR

/C6"Built-in Functions" STYLE_FUNCTION
addstr
backupto box br
copytext copyto
filter focus
goto
highlight
incr input inputfile inputfolder
load
moveto
msg
new
open openwith
regexreplace rename replace
sel selfilter seltab set setting settingp sortby status step strlen strpos sub substr swapnames
text try
unset unstep

/C7"Numeric Functions" STYLE_FUNCTION
** #

/C8"not used"
How to add this wordfile to UltraEdit

Keep in mind: This first version is far from perfect yet. I still need to optimize things like Indents, Braces and functions strings.
Updates will follow.

Post Reply