On Dec 29, 2007 1:25 PM, Matija Šuklje wrote: > Hullo, > > I've already mentioned that Kate/Kwrite and with that also Kile have a working > ConTeXt syntax highlighting file available on kde-files.org > > What I'm trying to do now is including ConTeXt commands autocompletion in > Kile. What I would need for that is a list of the commands (see attachment > for more info). I seem to recall someone mentioned a texexec command to list > all of these. This would be of great help to me and all the (future) Kile > users. > > I can then edit the .cwl file myself and bug the Kile devs to include it — all > I need is (how to get) the list of the ConTeXt commands.
See class Commands, editinterface (lines 194-306) in scripts/context/ruby/ctxtools.rb You can fix those simple portions of code to output the code in your desired format. Then you can copy tex/context/interface/* to your working directory and run ctxtools --sciteinterface (to get definitions for scite) for example. The code currently only returns a list of commands. If you want all variants of them, the code might need to be improved a bit (also note that it won't return you all the commands - someone should revise cont-en.xml, but it's still reasonably good). What about the keys? (\setuphead accepts only some keys. Does Kile support that as well?) Do you know http://texshow.contextgarden.net/? (not that you can use it directly, but only to see ...) Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : email@example.com / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________