From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kamphausen@creativepharma.com (Stefan Kamphausen) Newsgroups: gmane.emacs.help Subject: Re: How to quote region into HTML tags? Date: 24 Apr 2003 04:26:17 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <62ede926.0304240326.1dbb77da@posting.google.com> References: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1051183798 32666 80.91.224.249 (24 Apr 2003 11:29:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2003 11:29:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 13:29:57 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 198evN-0008Uj-00 for ; Thu, 24 Apr 2003 13:29:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198evv-0006hn-02 for gnu-help-gnu-emacs@m.gmane.org; Thu, 24 Apr 2003 07:30:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 217.226.220.60 Original-X-Trace: posting.google.com 1051183578 3767 127.0.0.1 (24 Apr 2003 11:26:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 24 Apr 2003 11:26:18 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:112269 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8767 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8767 Hi, wang yin wrote in message news:... > I want to quote some text in a region into HTML tags. > > for example, I want to change > > here is some text > > into > >

here is some text

> > How can I do this with HTML mode? Assuming that you use PSGML you can mark the region (using C-spc and cursor keys) and then type C-c C-r (sgml-tag-region) which asks you for the tag to use (with completion) and then puts the region in that tag. I might be that this requires a correct DTD in your document, I don't know. Besides the transient mark mentioned in other postings you could also set sgml-tag-region-if-active to t. Maybe look at info psgml ->Insert markup where this is all described. Best Regards Stefan Kamphausen