From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Adding bracket tags to sgml-mode
Date: Mon, 18 Jun 2012 23:47:08 -0600 [thread overview]
Message-ID: <jrp3ms$a3l$1@dough.gmane.org> (raw)
In-Reply-To: <CAKeDzS-NERT8RpZ=_4Twi+ecA32UJ9jp8Z69HbhDO96jU6rXaA@mail.gmail.com>
On 6/18/12 8:50 PM, Chris Hardee wrote:
> I'm working with a CMS system that uses custom bracket tags, ie
> {example}...*html stuff*...{/example}; unfortunately, sgml-mode
> doesn't recognize them and doesn't indent properly. I'm wondering if
> there is a simple way to extend sgml-mode to include these tags or if
> I need to create a separate mode. Any way to point me in the right
> direction would be appreciated, thanks!
If you put point immediately before < and > in sgml-mode, what does
`C-u C-x =' report in the *Help* buffer?
Compare that to the information when point is immediately before { and }.
If sgml-mode uses syntax categories to parse tags, then perhaps you can
customize it to treat { and } like < and >.
> (I tried nxml-mode, but it's a bit clunky and overkill for what I'm
> hoping to do. I'll go with it if it's the only practical option
> though)
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2012-06-19 5:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-19 2:50 Adding bracket tags to sgml-mode Chris Hardee
2012-06-19 5:47 ` Kevin Rodgers [this message]
2012-06-19 6:24 ` Andreas Röhler
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='jrp3ms$a3l$1@dough.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).