From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: GianUberto.Lauri@eng.it (Gian Uberto Lauri) Newsgroups: gmane.emacs.help Subject: Re: Question on using emacs to write html Date: Fri, 23 Jan 2004 10:18:34 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <16400.59114.88896.499847@mail.eng.it> References: Reply-To: saint@eng.it NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1074849512 6674 80.91.224.253 (23 Jan 2004 09:18:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2004 09:18:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 23 10:18:20 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AjxSG-0004pg-00 for ; Fri, 23 Jan 2004 10:18:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AjxQ8-0006Tn-9f for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Jan 2004 04:16:08 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AjxPG-0006S9-P8 for help-gnu-emacs@gnu.org; Fri, 23 Jan 2004 04:15:14 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AjxOk-0006J2-9C for help-gnu-emacs@gnu.org; Fri, 23 Jan 2004 04:15:13 -0500 Original-Received: from [62.101.90.2] (helo=mail.eng.it) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AjxOj-0006Im-O8 for help-gnu-emacs@gnu.org; Fri, 23 Jan 2004 04:14:41 -0500 Original-Received: from paperoga (localhost [127.0.0.1]) by mail.eng.it (Postfix) with ESMTP id 4045417803; Fri, 23 Jan 2004 10:14:39 +0100 (CET) Original-To: Tim McNamara Original-Newsgroups: gnu.emacs.help In-Reply-To: X-Mailer: VM 7.07 under Emacs 21.3.1 X-attribution: CC X-Home-Page: http://www.gest.unipd.it/~saint X-Zippy: If Robert Di Niro assassinates Walter Slezak, will Jodie Foster marry Bonzo?? X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16301 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16301 >>>>> "TM" == Tim McNamara writes: TM> Jeff writes: >> I've been programming so long using emacs that other key bindings >> drive me crazy. Lately I've been writing html using emacs because >> bluefish uses the Microsoft bindings. Is there a way to bind keys >> to the insertion of common toggle pairs, like
, >>
, , , and so on? Is there a >> way to have this work only in an 'html mode'? TM> Try "html-helper-mode" which works like a charm. It has a menu TM> (with associated key bindings) for most tags and such. You can TM> even select a string and html-helper-mode will place the opening TM> and closing tags in their proper places. Trick! When it works well it's all Nelson Minar's credit! TM> The only trouble I've had- and it's *really* minor- is that it TM> spends a bit of time fontifying files, not much of a problem TM> except on big files. html-helper-mode colors tags and text very TM> nicely and it's easy to see the structure of the document. I TM> haven't tried it with jit-lock or lazy-lock, which might speed up TM> that fontifying. Hmmm... Calling it *really* minor is a BIG kindness. I still consider html-helper-mode a kluge (RMS kindly said that some things could be done in an easier way...) Anyway, the latest released version is available (should be) at http://www.nongnu.org/baol-hth/index.html while the project url is at https://savannah.nongnu.org/projects/baol-hth/ (baol is the logname I use when saint is not available) WARNING! Under Emacs 21 html-helper-mode is known to hang Emacs with certain (JSP/ASP/PHP) files. Consider server-side code fontification as "broken" under Emacs 21 and this trouble could happen with multiline blocks. I fear that the code is too slow to finish the job before the jit starts it again. Disabling JIT could be an UGLY workaround. Work is in progress to fix it, actually the CVS version on savannah works except some features (like tag attributes - namely all the font-lock-keywords stuff) are lost and doesn't highlight the last tag. My apologies. /\ ___ /___/\__|_|\_|__|___Gian Uberto Lauri_____________________ //--\ | | \| | Integralista GNUslamico e fancazzista \/