From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: How to disable multi-line string literal in c-mode and c++-mode? Date: Wed, 19 Aug 2009 10:49:32 +0200 Organization: Freie Universitaet Berlin Message-ID: <877hx05gtf.wl%anselm.helbig+news2009@googlemail.com> References: <4a7f28df-9e34-4500-9038-199401f60d90@c1g2000yqi.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1250675070 24012 80.91.229.12 (19 Aug 2009 09:44:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Aug 2009 09:44:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 19 11:44:23 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MdhiR-0001pK-1W for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Aug 2009 11:44:23 +0200 Original-Received: from localhost ([127.0.0.1]:48787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdhiQ-0003nQ-55 for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Aug 2009 05:44:22 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-X-Trace: news.uni-berlin.de TGeLUPfTUcurxBdtURxp/g0Agk+jdLDy9LInCTx6vDnPjthvUK867hFPgA Cancel-Lock: sha1:/T7jUuZ3Zphjt95Pk0EDricV9cs= In-Reply-To: <4a7f28df-9e34-4500-9038-199401f60d90@c1g2000yqi.googlegroups.com> Mail-Followup-To: anselm.helbig+news2009@googlemail.com Original-Xref: news.stanford.edu gnu.emacs.help:172093 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67263 Archived-At: 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