all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Anselm Helbig <anselm.helbig+news2009@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to disable multi-line string literal in c-mode and c++-mode?
Date: Wed, 19 Aug 2009 10:49:32 +0200	[thread overview]
Message-ID: <877hx05gtf.wl%anselm.helbig+news2009@googlemail.com> (raw)
In-Reply-To: <4a7f28df-9e34-4500-9038-199401f60d90@c1g2000yqi.googlegroups.com>

Hi!

> How can I disable multi-line string literals in c-mode and c++-mode,
> and treat the end of line as the end of string literal?
> 
> I am programming using noweb, where LaTeX and C++ sources are mixed
> together.  When editing the code part, the buffer uses c++-mode, but
> any single quote in the text is treated as start or end of string
> literal, so many of my code chunks are rendered as string literals.  I
> would like to disable this multi-line string literals in c++-mode.

You could try one of the packages mentioned on this page:

  http://www.emacswiki.org/emacs/MultipleModes

Good luck!

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


      parent reply	other threads:[~2009-08-19  8:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-18 15:21 How to disable multi-line string literal in c-mode and c++-mode? wewwew
2009-08-18 19:35 ` Alan Mackenzie
     [not found] ` <mailman.4853.1250623941.2239.help-gnu-emacs@gnu.org>
2009-08-18 20:40   ` wewwew
2009-08-18 21:35     ` Peter Milliken
2009-08-19  8:49 ` Anselm Helbig [this message]

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=877hx05gtf.wl%anselm.helbig+news2009@googlemail.com \
    --to=anselm.helbig+news2009@googlemail.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.
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.