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. Cheers, Matija -- gsm: +386 41 849 552 e-mail: matija.suklje@rutka.net www: http://matija.suklje.name aim: hookofsilver icq: 110183360 jabber/g-talk: matija.suklje@gabbler.org msn: matija.suklje@rutka.net yahoo: matija_suklje
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
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.
The link in README vas wrong. Here's the right one. http://websvn.kde.org/trunk/extragear/office/kile/src/data/complete/tex/ When looking at these examples: \begin{frame}[options] \begin{frame}[options]{title} \begin{frame}[options]{title}{subtitle} \begin{frame}[options]{title}{subtitle} Once you have the basic syntax ready: can you also convince the developers to support a list of what's allowed inside [options]? For example, it might be that only \setupsomething[style=bold|italic|slanted|\command,strut=yes|no] is allowed. Mojca
Hi Matija,
Attached is the text file I use for Notepad++. It's (almost) complete and
based on Hans' Scite files.
I miss Kate and hope to check it out again whenever I get time to play
with Linux again (it's been about four years).
Best wishes
Idris
On Sat, 29 Dec 2007 05:25:30 -0700, Matija Šuklje
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).
-- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Dne sobota 29. decembra 2007 je Idris Samawi Hamid napisal(a):
Attached is the text file I use for Notepad++. It's (almost) complete and based on Hans' Scite files.
Hi, Idris! Thanks :] I'll need to add the brackets in myself, but that's the least I can do to give back to the ConTeXt community!
I miss Kate and hope to check it out again whenever I get time to play with Linux again (it's been about four years).
Kate doesn't use the autocompletion itself, but if we manage to completely ConTeXt-ify Kile (which uses Kate), it will be one sweet ride :] Dne sobota 29. decembra 2007 je Mojca Miklavec napisal(a):
Do you know http://texshow.contextgarden.net/? (not that you can use it directly, but only to see ...)
No, I didn't. Thanks for the link :D Are there all the currently valid commands listed?
Once you have the basic syntax ready: can you also convince the developers to support a list of what's allowed inside [options]? For example, it might be that only \setupsomething[style=bold|italic|slanted|\command,strut=yes|no] is allowed.
From what I saw this is not yet implemented in Kile — not even for LaTeX or pure TeX. But the idea is really great, so I'll try my best to conveince them. Cheers, Matija -- gsm: +386 41 849 552 e-mail: matija.suklje@rutka.net www: http://matija.suklje.name aim: hookofsilver icq: 110183360 jabber/g-talk: matija.suklje@gabbler.org msn: matija.suklje@rutka.net yahoo: matija_suklje
On Dec 29, 2007 9:14 PM, Matija Šuklje wrote:
Dne sobota 29. decembra 2007 je Mojca Miklavec napisal(a):
Do you know http://texshow.contextgarden.net/? (not that you can use it directly, but only to see ...)
No, I didn't. Thanks for the link :D Are there all the currently valid commands listed?
Most should be, but they're not all. The only complete reference is the source :) However, if you send a patch to cont-en.xml, it will be included. Mojca
Dne sobota 29. decembra 2007 je Idris Samawi Hamid napisal(a):
Attached is the text file I use for Notepad++. It's (almost) complete and based on Hans' Scite files.
Hi, Idris, I've just compared the list you sent me with the raw one I generated from TeXLive 2007's ConTeXt. The one you sent me contains 875 lines/commands, whereas the raw generated one contains 3151. Am I doing something wrong here? Cheers, Matija -- gsm: +386 41 849 552 e-mail: matija.suklje@rutka.net www: http://matija.suklje.name aim: hookofsilver icq: 110183360 jabber/g-talk: matija.suklje@gabbler.org msn: matija.suklje@rutka.net yahoo: matija_suklje
Hi Matija,
On Wed, 02 Jan 2008 05:14:04 -0700, Matija Šuklje
I've just compared the list you sent me with the raw one I generated from TeXLive 2007's ConTeXt.
The one you sent me contains 875 lines/commands, whereas the raw generated one contains 3151. Am I doing something wrong here?
Exactly how did you generate this? I just took the info from Hans' scite properties files. Maybe you are getting low-level commands not normally accessible to the user. Could you send it to me off-list? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
OK, it's been a "fun" day's work, but here's the current working version of the context.cwl file. What it does include: * all the commands with all the fields mentioned on texshow.contextgarden.net * the rest of the commands that I used from the list Idris sent me are currently commented out, until I find out they're valid (although not on texshow) * all the fields have short descriptions * all the \start* commands end with appropriate \stop* commands * some of the fields (where it was simple to do it) use a '|' character as a separator inside fields What it does not include: * a syntax completely as Kile's README.cwl would want to have (especially because of my misuse of \start* \stop* in the same command and Mojca's separator suggestion) * a completely coherent and Kile-"valid" syntax is still missing, although as it is, the file is usable * some commands are commented out, as mentioned above Installation: copy or link the file to /usr/share/apps/kile/complete/tex/ (or the appropriate <kile>/complete/tex/ directory) and add "context.cwl" in Kile's settings under "Kile->Complete->TeX/LaTeX" I hope anyone finds it useful and that I manage to get it working perfectly/validly soon. Cheers, Matija -- gsm: +386 41 849 552 e-mail: matija.suklje@rutka.net www: http://matija.suklje.name aim: hookofsilver icq: 110183360 jabber/g-talk: matija.suklje@gabbler.org msn: matija.suklje@rutka.net yahoo: matija_suklje
Matija Šuklje wrote:
OK, it's been a "fun" day's work, but here's the current working version of the context.cwl file.
What it does include: * all the commands with all the fields mentioned on texshow.contextgarden.net * the rest of the commands that I used from the list Idris sent me are currently commented out, until I find out they're valid (although not on texshow) * all the fields have short descriptions * all the \start* commands end with appropriate \stop* commands * some of the fields (where it was simple to do it) use a '|' character as a separator inside fields
What it does not include: * a syntax completely as Kile's README.cwl would want to have (especially because of my misuse of \start* \stop* in the same command and Mojca's separator suggestion) * a completely coherent and Kile-"valid" syntax is still missing, although as it is, the file is usable * some commands are commented out, as mentioned above
Installation: copy or link the file to /usr/share/apps/kile/complete/tex/ (or the appropriate <kile>/complete/tex/ directory) and add "context.cwl" in Kile's settings under "Kile->Complete->TeX/LaTeX"
I hope anyone finds it useful and that I manage to get it working perfectly/validly soon.
ctxtools can output files for editors (bbedit, jedit, scite) based on the xml definition files; i can imagine an option to write the files needed for kile (given that someone else than me writes the code) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Thu, 03 Jan 2008 06:14:39 -0700, Hans Hagen
ctxtools can output files for editors (bbedit, jedit, scite) based on the xml definition files; i can imagine an option to write the files needed for kile (given that someone else than me writes the code)
1. Can you give an example? 2. Where are those xml files? Npp is pretty simple; just an ordered list: === about adaptlayout adding aftersplitstring and appendix appendtoks [etc.] === Best Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
participants (4)
-
Hans Hagen
-
Idris Samawi Hamid
-
Matija Šuklje
-
Mojca Miklavec