Re: [AOLSERVER] Emacs and ADP -- a solution
I use UltraEdit (www.ultraedit.com) as you can write your own syntax highlighting filters. I'm not saying its the best - its what I've used for a while and I'm now used to it. -Original Message-From: AOLserver Discussion [mailto:[EMAIL PROTECTED]On Behalf Of Kevin LawverSent: Monday, March 17, 2003 2:22 PMTo: [EMAIL PROTECTED]Subject: Re: [AOLSERVER] Emacs and ADP -- a solutionjEdit (www.jedit.org). It does a good job of markup highlighting, and works on all four platforms I use. It comes with all kinds of code highlighting presets built in, and handles pretty much everything I've thrown at it without dying. KevinIn a message dated 3/17/03 9:19:25 AM, [EMAIL PROTECTED] writes: What does everyone else use for editing ADP's? TCL for that fact as well.JeremyOn Sunday 16 March 2003 08:39 am, you wrote:> Greetings.>> I use emacs for all text editing and I was running into a problem with> editing ADP's. With html-helper-mode I can do things like narrow down to a> _javascript_ block and edit _javascript_ with a _javascript_ mode (syntax> highlighting, language helpers, automatic indenting, etc...). I wished to> have the same thing for editing Tcl blocks in my .adp's <% ... %>. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Emacs and ADP -- a solution
On Mon, 17 Mar 2003, [EMAIL PROTECTED] wrote: > Jeremy Cowgar writes: >> > XEmacs with MMM for Multiple Major Modes support works very nicely. >> > It's a huge improvement over the stock Tcl mode in Gnu Emacs and >> > XEmacs as well. I didn't configure the one I'm using at work, so I >> > can't really tell you how to do so, but googling for "mmm-mode" gets a >> > lot of useful hits, e.g.: There's some attribution lossage here, as well as some confusion over the ATP's 'work' comment. Anyway, since I did the xemacs configuration, I guess I'll pipe in here... mmm is available as an Xemacs package, or can be downloaded from mmm-mode.sourceforge.net >> When you arrive at home (if/when) you have time, I would love to see your >> configs. I have tried a few things out to make this work and so far am >> failing. Once you have mmm installed, you need to setup so that adp pages are handled. adp files should have html-mode as their primary mode. (add-to-list 'auto-mode-alist '("\\.adp\\'" . html-mode)) Then you need mmm-mode setup so that mmm looks for all of the other stuff that could be in adp pages. (setq mmm-global-mode 'maybe) (setq mmm-submode-decoration-level 2) (mmm-add-mode-ext-class 'html-mode "\\.adp\\'" 'html-tcl) (mmm-add-mode-ext-class 'html-mode "\\.adp\\'" 'html-js) (mmm-add-mode-ext-class 'html-mode "\\.adp\\'" 'embedded-css) Then you need to make sure that html-tcl, html-js, and embedded-css have been defined as mmm groups or classes. Stuff between ... is css, and is available with mmm, and is repeated here. (mmm-add-classes '((embedded-css :submode css :face mmm-declaration-submode-face :front "]*>" :back ""))) Stuff inside of <% >% is tcl. (mmm-add-group 'html-tcl '((tcl-code :submode tcl :face mmm-code-submode-face :front "<%[!=]?" :back "%>"))) The standard html-js version looks for ... and handles javascript. My html-js version looks for other languages, but probably requires modifications that I've made to mmm-mode. tcl mode is then setup so that anybody using the db_* functions get sql-mode when writing the queries by doing the following: (mmm-add-mode-ext-class 'tcl-mode "www/.*\\.tcl\\'" 'ad-tcl-sql) (mmm-add-group 'ad-tcl-sql `((db-multirow :submode sql :face mmm-code-submode-face :front ,(concat "\\(" (regexp-opt '("db_0or1row" "db_1row" "db_clob_get_file" "db_blob_get_file" "db_dml" "db_exec" "db_exec_plsql" "db_foreach" "db_list" "db_list_of_lists" "db_multirow" "db_string" "db_write_blob" "db_write_clob" "ns_ora" "orasql")) "\\)" ".*{") :back "}") (ad-page-contract :submode html :face mmm-code-submode-face :front "^\\(ad_page_contract\\).*{" :back "^}") )) The above requires that db_foreach sql queries be written using {} and not "". -jeff -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Emacs and ADP -- a solution
Jeremy Cowgar writes: > > XEmacs with MMM for Multiple Major Modes support works very nicely. > > It's a huge improvement over the stock Tcl mode in Gnu Emacs and > > XEmacs as well. I didn't configure the one I'm using at work, so I > > can't really tell you how to do so, but googling for "mmm-mode" gets a > > lot of useful hits, e.g.: > > When you arrive at home (if/when) you have time, I would love to see your > configs. I have tried a few things out to make this work and so far am > failing. Yeah, I'd be interested in that, too. TIA -Lane ___ Lane Wimberley 8303 N. MoPac, Suite A-300 Austin, TX 78759 Wayport, Inc.512.519.6195 (voice)512.519.6200 (fax) It's like the difference between a duck: one of its legs is both the same. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Emacs and ADP -- a solution
> XEmacs with MMM for Multiple Major Modes support works very nicely. > It's a huge improvement over the stock Tcl mode in Gnu Emacs and > XEmacs as well. I didn't configure the one I'm using at work, so I > can't really tell you how to do so, but googling for "mmm-mode" gets a > lot of useful hits, e.g.: When you arrive at home (if/when) you have time, I would love to see your configs. I have tried a few things out to make this work and so far am failing. Thanks, Jeremy -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Emacs and ADP -- a solution
On 2003.03.17, Scott Laplante <[EMAIL PROTECTED]> wrote: > vim, obstinately. ; ) vim6 here, too. Rock on. -- Dossy -- Dossy Shiobara mail: [EMAIL PROTECTED] Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70) -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Emacs and ADP -- a solution
On 3/17/03 11:17 AM, "Janine Sisk" <[EMAIL PROTECTED]> wrote: > Hear, hear! :) > > I keep hearing about the studliness of Emacs and it's not that I don't > believe it - but my fingers know Vi extremely well, after using it for > nigh on 15 years (ok, that's a scary thought in itself!) and it slows > me down too much to try to learn another editor. Maybe I'll give it a > try after I retire. :) > > janine > > On Monday, March 17, 2003, at 12:14 PM, Scott Laplante wrote: > >> vim, obstinately. ; ) >> >> -Original Message- >> From: Jeremy Cowgar [mailto:[EMAIL PROTECTED] >> Sent: Monday, March 17, 2003 6:09 AM >> To: [EMAIL PROTECTED] >> Subject: Re: [AOLSERVER] Emacs and ADP -- a solution >> >> >> What does everyone else use for editing ADP's? TCL for that fact as >> well. >> >> Jeremy >> >> On Sunday 16 March 2003 08:39 am, you wrote: >>> Greetings. >>> >>> I use emacs for all text editing and I was running into a problem with >>> editing ADP's. With html-helper-mode I can do things like narrow down >>> to a >>> JavaScript block and edit JavaScript with a JavaScript mode (syntax >>> highlighting, language helpers, automatic indenting, etc...). I >>> wished to >>> have the same thing for editing Tcl blocks in my .adp's <% ... %>. >> >> Vim here, too. I used to use Emacs, but it was such a pain to configure and get right; Vim seems to be easier to configure and add capabilities to. Vim is backwards-compatible with me. /s. >> -- >> AOLserver - http://www.aolserver.com/ >> To Remove yourself from this list: >> http://www.aolserver.com/listserv.html >> List information and options: http://listserv.aol.com/ >> >> >> -- >> AOLserver - http://www.aolserver.com/ >> To Remove yourself from this list: >> http://www.aolserver.com/listserv.html >> List information and options: http://listserv.aol.com/ >> > -- > Janine Sisk > President/CEO > furfly.net, LLC > Mont Vernon, NH > > > -- > AOLserver - http://www.aolserver.com/ > To Remove yourself from this list: http://www.aolserver.com/listserv.html > List information and options: http://listserv.aol.com/ > -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Emacs and ADP -- a solution
On Mon, Mar 17, 2003 at 09:08:46AM -0500, Jeremy Cowgar wrote: > What does everyone else use for editing ADP's? TCL for that fact as well. XEmacs with MMM for Multiple Major Modes support works very nicely. It's a huge improvement over the stock Tcl mode in Gnu Emacs and XEmacs as well. I didn't configure the one I'm using at work, so I can't really tell you how to do so, but googling for "mmm-mode" gets a lot of useful hits, e.g.: http://mmm-mode.sourceforge.net/ http://packages.debian.org/stable/editors/mmm-mode.html -- Andrew Piskorski <[EMAIL PROTECTED]> http://www.piskorski.com -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Emacs and ADP -- a solution
Hear, hear! :) I keep hearing about the studliness of Emacs and it's not that I don't believe it - but my fingers know Vi extremely well, after using it for nigh on 15 years (ok, that's a scary thought in itself!) and it slows me down too much to try to learn another editor. Maybe I'll give it a try after I retire. :) janine On Monday, March 17, 2003, at 12:14 PM, Scott Laplante wrote: vim, obstinately. ; ) -Original Message- From: Jeremy Cowgar [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 6:09 AM To: [EMAIL PROTECTED] Subject: Re: [AOLSERVER] Emacs and ADP -- a solution What does everyone else use for editing ADP's? TCL for that fact as well. Jeremy On Sunday 16 March 2003 08:39 am, you wrote: Greetings. I use emacs for all text editing and I was running into a problem with editing ADP's. With html-helper-mode I can do things like narrow down to a JavaScript block and edit JavaScript with a JavaScript mode (syntax highlighting, language helpers, automatic indenting, etc...). I wished to have the same thing for editing Tcl blocks in my .adp's <% ... %>. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/ -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/ -- Janine Sisk President/CEO furfly.net, LLC Mont Vernon, NH -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Emacs and ADP -- a solution
vim, obstinately. ; ) -Original Message- From: Jeremy Cowgar [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 6:09 AM To: [EMAIL PROTECTED] Subject: Re: [AOLSERVER] Emacs and ADP -- a solution What does everyone else use for editing ADP's? TCL for that fact as well. Jeremy On Sunday 16 March 2003 08:39 am, you wrote: > Greetings. > > I use emacs for all text editing and I was running into a problem with > editing ADP's. With html-helper-mode I can do things like narrow down to a > JavaScript block and edit JavaScript with a JavaScript mode (syntax > highlighting, language helpers, automatic indenting, etc...). I wished to > have the same thing for editing Tcl blocks in my .adp's <% ... %>. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/ -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Emacs and ADP -- a solution
jEdit (www.jedit.org). It does a good job of markup highlighting, and works on all four platforms I use. It comes with all kinds of code highlighting presets built in, and handles pretty much everything I've thrown at it without dying. Kevin In a message dated 3/17/03 9:19:25 AM, [EMAIL PROTECTED] writes: What does everyone else use for editing ADP's? TCL for that fact as well. Jeremy On Sunday 16 March 2003 08:39 am, you wrote: > Greetings. > > I use emacs for all text editing and I was running into a problem with > editing ADP's. With html-helper-mode I can do things like narrow down to a > _javascript_ block and edit _javascript_ with a _javascript_ mode (syntax > highlighting, language helpers, automatic indenting, etc...). I wished to > have the same thing for editing Tcl blocks in my .adp's <% ... %>. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
Re: [AOLSERVER] Emacs and ADP -- a solution
What does everyone else use for editing ADP's? TCL for that fact as well. Jeremy On Sunday 16 March 2003 08:39 am, you wrote: > Greetings. > > I use emacs for all text editing and I was running into a problem with > editing ADP's. With html-helper-mode I can do things like narrow down to a > JavaScript block and edit JavaScript with a JavaScript mode (syntax > highlighting, language helpers, automatic indenting, etc...). I wished to > have the same thing for editing Tcl blocks in my .adp's <% ... %>. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
[AOLSERVER] Emacs and ADP -- a solution
Greetings. I use emacs for all text editing and I was running into a problem with editing ADP's. With html-helper-mode I can do things like narrow down to a JavaScript block and edit JavaScript with a JavaScript mode (syntax highlighting, language helpers, automatic indenting, etc...). I wished to have the same thing for editing Tcl blocks in my .adp's <% ... %>. I made a few additions to the mode and it's now the perfect solution (I think). I have pretty HTML, HTML helpers, etc... Then when I'm in a <% ... %> block, I hit F10 and instantly I am in the emacs TCL mode with that block now the screen. I have all the benefits of the TCL mode, but inside of the ADP file. When I'm done, I hit F11 and it takes me back to the full file, and back into the pretty HTML editing mode. I have created a page on my wiki for more information, what you have to do, how to use it, etc... If you use emacs and do not already have a solution like this, you may want to take a peek: http://cowgar.com/wiki.adp?pagename=Programming%20AOL%20Server It would be interesting to see how many people would use this. If their is enough, maybe the authors of HTML-helper-mode will add this code into their distribution so that HTML-helper-mode would be able to edit ADP pages out of the box. Thanks, Jeremy -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/