unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Need help with some changes in c-mode
@ 2007-02-17  6:34 nemshilov
  2007-02-19 19:34 ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: nemshilov @ 2007-02-17  6:34 UTC (permalink / raw)
  To: help-gnu-emacs

Hello there,

I'm trying to create a custom mode based on the c-mode and there are a
pair of questions which I cannot figure out by myself.

First, I need to be able to use strings like that

var_a = <<<EOL
some string inside of it
EOL;

I with to have all the text between "<<<EOL\n" and "\nEOL;" to be
marked as a string. I do mean that it should be colorized as a string
and behave as a multi-line string. And "EOL" is just an identifier,
it's not necessarily "EOL", it's anything like that "[a-zA-Z]+". And
if it's possible I would like to have the "<<<EOL" and "EOL" markers
to be marked somehow diffrent of the string by itself. Say as a
constant or keyword, I'll choose something later, just I need a hint
there.

The second stuff, I wish to have strings like "#....\n" as single-line
comments. I've allready added it like a comment, but there's a
problem, when I'm typing down something like " # =Synopsis ", I've got
problems with indentation case the "="-symbol handles as some kind of
operation by the c-mode. How can I switch it off?

That's it, Thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-02-21 17:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-17  6:34 Need help with some changes in c-mode nemshilov
2007-02-19 19:34 ` Glenn Morris
2007-02-20  4:03   ` nemshilov
2007-02-20 15:50     ` Robert Thorpe
2007-02-21  3:19       ` MadRabbit
2007-02-21 10:25         ` Robert Thorpe
2007-02-21 13:33           ` MadRabbit
2007-02-21 17:34             ` Robert Thorpe

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).