Singular https://www.singular.uni-kl.de/forum/ |
|
Singular syntax file for TextPad available... https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=1779 |
Page 1 of 1 |
Author: | Ravi [ Sun Oct 04, 2009 8:53 am ] |
Post subject: | Singular syntax file for TextPad available... |
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 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 |
Author: | dreyer [ Wed Oct 07, 2009 10:03 pm ] |
Post subject: | Re: Singular syntax file for TextPad available... |
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 |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |