dear all, I'm using moinmoin to documentate installation of our cluster and I wanted to contribute with bash parser. Unfortunately I'm absolute newbie to python (and actually I can't spend to much time learning python). I used as example some other parsers (mostly sci) and looked on web after string editing with python but I've still got some questions.
I defined in my modern/common.css file div.codearea pre span.BuiltIns { color: #0000ff; } div.codearea pre span.LoopCond { color: #ff9c00; font-weight: bold; } div.codearea pre span.LinuxBin { color: #b040d0; } div.codearea pre span.LinuxSbin { color: #f02020; } div.codearea pre span.Services { color: #20b020; } div.codearea pre span.Varia { color: #6080ff; } div.codearea pre span.Variables { color: #ff8060; } This last one should "lighten" the variables defined in bash ( ie $var1) however the following pair-rule wasn't working self.addRulePair("Variables",'\$','[0-9a-zA-Z]*') even if theres is no problem with smth like this: builtins_cmd = [ 'alias', 'bg', 'bind', ......] self.addWords(builtins_cmd,'BuiltIns') When I looked into the html code generated by moinmoin, instead of <span class="Variables" > I found <span class="Default" >. What is the reason? Did I make smth wrong? I used then "default" name Preprc self.addRulePair("Preprc",'\$','[0-9a-zA-Z]*') and everything went smooth. I know that it's better to use standardized names (ie one of: ID, Operator, Char, Comment, Number, String, SPChar, ResWord, ConsWord, Error, ResWord2, Special, Preprc) but then I'm restricted with number of different items(colors). Another question. I wanted to define (as you can see it css-definition) services as separate color. It should nicely show if one use command like services httpd start Now, I added services = [ 'acpid', .... 'httpd', .....] self.addWords(services,'Services') The problem is, that word httpd is also colored in egrep "^User|^Group" /etc/httpd/conf/httpd.conf Simple exchange of 'httpd' to 'httpd ' lead to no color at all. Any hint how to overcome this behavior would be welcomed. thanks in advance kris ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user