Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Singular syntax file for TextPad available...
PostPosted: Sun Oct 04, 2009 8:53 am 

Joined: Wed Jul 15, 2009 3:38 pm
Posts: 10
Hello,
I code in TextPad (on Windows) and I thought it would be good have syntax highlighting for Singular code. So I have made a syntax file for Singular keywords. Maybe somebody else also finds this useful?
I have pasted the contents of the syntax file below. To use this, copy and paste into a plain text file and save it as "singular.syn". Paste "singular.syn" in the same TextPad folder that contains "c.syn".
Make a new document class in TextPad with the appropriate extension(s) (Configure -> New Document Class) and fill out the wizard there.
Ravi
:-)


; TextPad syntax definitions for Singular
; A first trial. Ravi Kulkarni, 4 Oct 2009

C=1

[Syntax]
Namespace1 = 6
IgnoreCase = No
KeyWordLength =
BracketChars = {[()]}
OperatorChars = -+*/<>!~%^&|=
SyntaxStart =
SyntaxEnd =
CommentStart = /*
CommentEnd = */
CommentStartAlt =
CommentEndAlt =
SingleComment = //
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
SingleCommentEsc =
StringsSpanLines = Yes
StringStart = "
StringEnd = "
StringAlt =
StringEsc =
CharStart = '
CharEnd = '
CharEsc =

[Keywords 1]
bigint
def
ideal
int
intmat
intvec
link
list
map
matrix
module
number
package
poly
proc
qring
resolution
ring
string
vector


;[Keywords 2]
attrib
bareiss
betti
char
char_series
charstr
chinrem
cleardenom
close
coef
coeffs
contract
dbprint
defined
deg
degree
delete
det
diff
dim
division
dump
eliminate
eval
ERROR
example
execute
exit
extgcd
facstd
factorize
fetch
fglm
fglmquot
files, input from
find
finduni
fprintf
freemodule
frwalk
gcd
gen
getdump
groebner
help
highcorner
hilb
homog
hres
imap
impart
indepSet
insert
interpolation
interred
intersect
jacob
janet
jet
kbase
kernel
kill
killattrib
koszul
laguerre
lead
leadcoef
leadexp
leadmonom
LIB
lift
liftstd
listvar
lres
maxideal
memory
minbase
minor
minres
modulo
monitor
mpresmat
mres
mstd
mult
nameof
names
ncols
npars
nres
nrows
nvars
open
option
ord
ordstr
par
pardeg
parstr
preimage
prime
print
printf
prune
qhweight
quote
quotient
random
read
reduce
regularity
repart
res
reservedName
resultant
ringlist
rvar
setring
simplex
simplify
size
slimgb
sortvec
sqrfree
sprintf
sres
status
std
stdfglm
stdhilb
subst
system
syz
trace
transpose
type
typeof
univariate
uressolve
vandermonde
var
variables
varstr
vdim
wedge
weight
weightKB
write

;[Keywords 3]
break
breakpoint
continue
else
export
exportto
for
if
importfrom
keepring
load
quit
return
while
~

;[Keywords 4]
degBound
echo
minpoly
multBound
noether
printlevel
short
timer
TRACE
rtimer
voice


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Singular syntax file for TextPad available...
PostPosted: Wed Oct 07, 2009 10:03 pm 
Site Admin

Joined: Thu Nov 13, 2008 10:52 am
Posts: 26
Dear Ravi,
thank you for sharing your syntax file. Very nice!
I think, there are several TextPad users around, which will find it useful.

Best regards,
Alexander


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 11:06 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group