all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: kamphausen@creativepharma.com (Stefan Kamphausen)
Subject: Re: How to quote region into HTML tags?
Date: 24 Apr 2003 04:26:17 -0700	[thread overview]
Message-ID: <62ede926.0304240326.1dbb77da@posting.google.com> (raw)
In-Reply-To: phk7donpmb.fsf@wangyin.com

Hi,

wang yin <wy@wangyin.com> wrote in message news:<phk7donpmb.fsf@wangyin.com>...
> I want to quote some text in a region into HTML tags.
> 
> for example, I want to change
> 
> here is some text
> 
> into
> 
> <H3>here is some text</H3>
> 
> 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

  parent reply	other threads:[~2003-04-24 11:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-21  9:53 How to quote region into HTML tags? wang yin
2003-04-21 16:49 ` Jeffery B. Rancier
2003-04-23 12:26 ` Jesper Harder
2003-04-23 18:11   ` Kevin Rodgers
2003-04-23 22:18     ` Kevin Rodgers
2003-04-24 11:26 ` Stefan Kamphausen [this message]
2003-04-24 21:35   ` Martin Stemplinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=62ede926.0304240326.1dbb77da@posting.google.com \
    --to=kamphausen@creativepharma.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.