I was kind of sick of everything being black and white, so I made this little thing for Notepad++.
This syntax highlight file highlights all the available commands in FRAXY when written in upper-case. Of course, you can write the commands in lower-case, but then it will not highlight them. The code will still work though. Hope it helped you make it less of an eyesore like it did for me.
Download Notepad++, install it if you haven't already; /n
Grab the file from the download link above; /n
Go to Language > Define your language...
Click on Import...
Select fraxy_try.xml... /n
You're done!
I made a variation of the other theme to cope with just about any dark theme you could set up with Notepad++. Here's a tip however to make sure it looks fine:
In Settings > Style Configurator, you can select a color scheme from the listbox on top. After you have chosen the theme, make sure you tick the "Enable global background color" box, otherwise your text will be shrouded in blocks of white.
Cheers!
EDIT: Looks like I couldn't attach an XML file after all! Put up a link to it instead.
EDIT2: With the help of Flan, we've managed to make it work a little bit better! Changes include: Highlighting commands, making the syntax case-sensitive (to enforce a better coding habit) and small fixes here and there. Yes, UDL is pretty limited.
Last edited by Garoslaw on Sat Jan 17, 2015 1:33 am, edited 2 times in total.
-- Math function
The following math function can be used in this script.
sin sin(value) [value (int): 0~4095] [return (int): -4096~4096]
Sin value.
cos cos(value) [value (int): 0~4095] [return (int): -4096~4096]
Cos value.
limit limit(value,min,max) [value (int/double)] [min (int/double)] [max (int/double)] [return (int/double)]
Return the value from min to max.
ex)
limit(abc, -10, 20)
abs abs(value) [value (int/double)] [return (int/double)]
Absolute value.
ex)
abs(5) -> 5 (int)
abs(-5) -> 5 (int)
abs(-5.0) -> 5.0 (double)
sqrt sqrt(value) [value (int/double)] [return (double)]
Square root.
rand rand(value) [value (int): 1~] [return (int): 0~(value-1)]
Random number.
int int(value) [value (int/double/str)] [return (int)]
Convert to int type.
double double(abc) [value (int/double/str)] [return (double)]
Convert to double type.
str str(abc) [value (int/double/str)] [return (str)]
Convert to str type.
strf strf("format",value) ["format" (str)] [value (int/double/str)] [return (str)]
String format.
The format is same as sprintf of C, but input value is only one.
ex)
abc = 123.4567
strf("%d",abc) -> 123
strf("%0.2f",abc) -> 123.45
strf("%x",abc) -> 7b
strf("%8X",abc) -> 7B
strf("%08X",abc) -> 0000007B
getpath getpath("str",type) ["str" (str)] [type (int): 0~] [return (str)]
Convert the file path string.
type :
&1 The file name except for the extension.
&2 Only an extension. (.???)
&8 Directory information is taken.
&16 A character string is changed to lowercase.
&32 Only directory information.
ex)
file = "C:\temp\aBc.txt"
getpath(file,2) -> ".txt"
getpath(file,8) -> "aBc.txt"
getpath(file,24) -> "abc.txt"
strlen strlen(target) [target (int/double/str)] [return (int)]
String length.
When parameter type is int or double, that returns the number of digits.
ex)
strlen(100) -> 3
strlen("abcde") -> 5
peek peek(target,offset) [target (str)] [offset (int): 0~] [return (int): 0~255]
Read 1byte.
ex)
peek(abc,0)
chr chr(code) [code (int): 0~255] [return (str)]
Converts character code to string.
ex)
strlen(65) -> A
strlen(66) -> B
strlen(97) -> a
strlen(48) -> 0
strlen(57) -> 9
getinfo chr(type,param) [type (int)] [param (int)] [return (int)]
This is same as "GETINFO".