Hello Stephan and PMario, I did also try double escaping, which should work. I found a "brush" here http://www.undermyhat.org/blog/wp-content/uploads/2009/09/shBrushAsm.js?cda6c1that has many instances of using double escaping, so that must be the way to do it. However I copied the var c="..." from the link into my TW and although TW didn't object to the code on reload, when I type a double escaped word from the list (e.g. ".elseif") in a new tiddler it doesn't get highlighted, whereas one that isn't double escaped does.
PMario, I looked at all the brushes at the link you sent, at it seems that generally keyword lists don't usually start with characters like * and /. The code I'm trying to highlight is APDL from Ansys. I think I should probably just highlight the word part of commands starting with * and /. There are a few APDL commands that exist in more than one group (e.g. *vget and vget) so I would have to highlight all groups with the same style, but I can live with that. Thank you both for your time and suggestions. Bob Bob -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.

