XY Script: Color Syntax for EditPadPro

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
admin
Site Admin
Posts: 65390
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

Pagat wrote:Since my editor of choice is UltraEdit, i played around with the (syntax highlighting) wordfile and came up with this first version...
:D Hey, finally somebody did something for me. :D UE is my editor ever since, and your world file rocks!

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

Re: XY Script: Color Syntax for EditPadPro

Post by Pagat »

A lot of new functions were introduced since i posted the first UltraEdit wordfile so here is a updated one:

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
assert
backupto box br
chr compare confirm copytext copyto
delete download
echo eval
filter focus
getinfo getkey goto
highlight
incr input inputfile inputfolder internetflags
load loadsearch
moveto msg
new
open openwith
quote
readurl regexreplace rename replace report run
sel selfilter self seltab set setkey setting settingp sortby status step strlen strpos sub substr swapnames
text timestamp
unset unstep
/C7"Numeric Functions" STYLE_FUNCTION
** #
/C8"not used"
Last edited by Pagat on 19 Oct 2008 19:24, edited 1 time in total.

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

Re: XY Script: Color Syntax for EditPadPro

Post by admin »

Pagat wrote:A lot of new functions were introduced since i posted the first UltraEdit wordfile so here is a updated one:...
Great, thanks!

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

Re: XY Script: Color Syntax for EditPadPro

Post by Pagat »

Updated wordfile for UltraEdit:

Code: Select all

/L20"XYplorer Script" Nocase Line Comment = // Block Comment On = /* Block Comment Off = */ 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
assert
backupto box br
call chr compare confirm copytext copyto
delete download
echo end eval
filter focus
getinfo getkey gettoken global goto
highlight html
incr input inputfile inputfolder internetflags
load loadsearch loadtree
md5 moveto msg
new
open openwith
quote
readfile readurl regexreplace rename replace report run
sel self selfilter seltab set setkey setting settingp sortby status step strlen strpos strrepeat sub substr swapnames
text timestamp
unset unstep urldecode urlencode
writefile
/C7"Numeric Functions" STYLE_FUNCTION
** #
/C8"not used"

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

Re: XY Script: Color Syntax for EditPadPro

Post by admin »

Pagat wrote:Updated wordfile for UltraEdit:
Thanks! Uploaded.

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

Re: XY Script: Color Syntax for EditPadPro

Post by TheQwerty »

A few things I might as well mention here...

Don just to point out, I have been updating those TextPad files to keep them somewhat up to date. You can always find the latest versions at:
http://code.google.com/p/xyplorer/sourc ... plorer.tcl
http://code.google.com/p/xyplorer/sourc ... plorer.syn

Anyone wanting to see when changes are made can checkout the source through SVN or use the feeds here:
http://code.google.com/p/xyplorer/feeds

Finally, if anyone wants to join the XYplorer project on Google Code, we could have multiple people contributing to a centralized repository.
Interested parties should shoot me a PM.

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

Re: XY Script: Color Syntax for EditPadPro

Post by admin »

TheQwerty wrote:A few things I might as well mention here...

Don just to point out, I have been updating those TextPad files to keep them somewhat up to date. You can always find the latest versions at:
http://code.google.com/p/xyplorer/sourc ... plorer.tcl
http://code.google.com/p/xyplorer/sourc ... plorer.syn

Anyone wanting to see when changes are made can checkout the source through SVN or use the feeds here:
http://code.google.com/p/xyplorer/feeds

Finally, if anyone wants to join the XYplorer project on Google Code, we could have multiple people contributing to a centralized repository.
Interested parties should shoot me a PM.
Hola! Never heard about this Google Code thing... I won't stop you... :D

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: XY Script: Color Syntax for EditPadPro

Post by j_c_hallgren »

TheQwerty wrote:Finally, if anyone wants to join the XYplorer project on Google Code, we could have multiple people contributing to a centralized repository.
I would think we could/should put copies of the other existing scripts there as well...so jacky and others can have a possibly better way of keeping track of these scripts...having it there may also possibly lead to more ppl discovering XY!
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

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

Re: XY Script: Color Syntax for EditPadPro

Post by TheQwerty »

j_c_hallgren wrote:
TheQwerty wrote:Finally, if anyone wants to join the XYplorer project on Google Code, we could have multiple people contributing to a centralized repository.
Could this be used as an alternate/backup for XY scripts also :?:
It could be.. I've been using it for everything I've posted here, and also for syncing between my home and work computers.

Google means for it to be used to store the source of a program, and I'm abusing the repository a bit to use it for scripts, and small snippets that I use with XY instead. I use it more its syncing abilities than for its source code versioning and management.

Anyone who is given the ability to add (commit) to the repository will be able to change any of the files, and everything there is accessible to the public, so if you keep that in mind when committing you are free to backup your scripts there.

I was thinking more along the lines of allowing us all to share and collaborate on our scripts and resources. For instance the one I just released here. I have no interest in using it or maintaining it but if someone wants to join the project and do so I'll let them. :lol:

I could see it also becoming a good resource for when XY gets snippets.


EDIT: Grr! You changed your post on me! :P Yes, if they want to join and do so I'd welcome them.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: XY Script: Color Syntax for EditPadPro

Post by j_c_hallgren »

TheQwerty wrote:EDIT: Grr! You changed your post on me! :P Yes, if they want to join and do so I'd welcome them.
:oops: Sorry! I originally had posted based on what I had seen/known at that time...I then realized that my post might be totally incorrect based on re-reading yours, so actually deleted it a couple of min later...but...I then went back later and looked more at Google Code and your postings so re-did my post based on that revised understanding, ok?
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

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

Re: XY Script: Color Syntax for EditPadPro

Post by TheQwerty »

j_c_hallgren wrote:... so actually deleted it a couple of min later...but...I then ... re-did my post
Heh! That also explains away my confusion on why the forum told me there was no message with that ID when I went to reply, but you were still the last post.

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

Re: XY Script: Color Syntax for EditPadPro

Post by Pagat »

i saw the stuff in the license lounge and that reminded me that the UltraEdit wordfile needs an update. Here it is:

Code: Select all

/L20"XYplorer Script" Nocase Line Comment = // Block Comment On = /* Block Comment Off = */ 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
break
continue
else elseif end
if
while
/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
false
true
/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
+ - * / == != < <<< > <= => && || ? :
and
or
Like LikeI
xor
/C6"Built-in Functions" STYLE_FUNCTION
asc assert
backupto box br
call chr Comment compare confirm copyitem copytext copyto
delete download
echo eval exists
filter focus
getinfo getkey gettoken global goto
highlight html
incr input inputfile inputfolder internetflags
load loadsearch loadtree
md5 moveto msg
new
open openwith
property
quote
readfile readurl regexreplace rename report replace rotate run
savesettings sel self selfilter seltab set setkey setting settingp sortby status step strlen strpos strrepeat sub substr swapnames
tag text timestamp
unset unstep urldecode urlencode utf8decode utf8encode
writefile
/C7"Numeric Functions" STYLE_FUNCTION
** #
/C8"not used"

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

Re: XY Script: Color Syntax for EditPadPro

Post by admin »

Pagat wrote:i saw the stuff in the license lounge and that reminded me that the UltraEdit wordfile needs an update. Here it is: ...
Thanks!

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: XY Script: Color Syntax for EditPadPro

Post by Muroph »

i have an updated version of jacky's EditPadPro syntax highlighting.
it includes new commands, variables and curly brackets.
however, i can't upload it as an attachment.

Don, should i send it to you via PM?
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

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

Re: XY Script: Color Syntax for EditPadPro

Post by admin »

Muroph wrote:i have an updated version of jacky's EditPadPro syntax highlighting.
it includes new commands, variables and curly brackets.
however, i can't upload it as an attachment.

Don, should i send it to you via PM?
Via email is better, thanks!

Post Reply