From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA25007; Tue, 30 Sep 2003 19:49:54 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA16948 for ; Tue, 30 Sep 2003 19:49:53 +0200 (MET DST) Received: from mail.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h8UHnq514935 for ; Tue, 30 Sep 2003 19:49:52 +0200 (MET DST) Received: from mail.messagingengine.com (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id B4AFD2467D4; Tue, 30 Sep 2003 13:48:39 -0400 (EDT) Received: from 10.202.2.150 ([10.202.2.150] helo=mail.messagingengine.com) by messagingengine.com with SMTP; Tue, 30 Sep 2003 13:48:39 -0400 X-Epoch: 1064944119 X-Sasl-enc: FVsMtDoiB1Pmjn1wM9lIUQ Received: from [192.168.0.135] (f03v-9-9.d1.club-internet.fr [212.194.44.9]) by mail.messagingengine.com (Postfix) with ESMTP id E51B82467E5; Tue, 30 Sep 2003 13:48:37 -0400 (EDT) Date: Tue, 30 Sep 2003 19:48:20 +0200 (CEST) From: Martin Jambon X-X-Sender: martin@pc-bioinfo1 To: skaller Cc: caml-list@inria.fr Subject: Re: [Caml-list] Printing text with holes In-Reply-To: <1064879263.4015.139.camel@pelican> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 renaming:01 vaguely:01 minimalist:01 newlines:01 insertions:01 sep:01 syntax:02 jambon:02 jambon:02 wrote:03 layout:04 output:05 breaks:06 variables:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On 30 Sep 2003, skaller wrote: > You have it easy. You're mainly concerned with nice line breaks. > Consider if you were formatting a plain text table and needed > to have a view of *column* positions. That's where you start > renaming all your variables to exactly 4 letters so you can check > that things line up vertically .. :) > > I have this kind of problem (vaguely) in Felix and the only > solution I found was "suck it and see". > > [I'm generating C++ and I want the output layout to look nice ..] So we need some kind of WYSIWYG editors. Imagine your source code contains "special regions", that you can edit using a custom WYSIaWYG editor (what you see is almost what you get), called from your favorite text editor. Maybe it would be enough to specify line-breaking keywords and tabulation marks to generate a minimalist WYSIaWYG editor. (*BEGIN { tabs = [Before ""; Before ""; Before ""]; newlines = [After "
"; After ""] } *)
$header_number_1$short
$x$y
(*END *) would be displayed as:
$header_number_1$short
$x $y
(+ syntax highlighting for fake spaces, insertions, keywords, ...) -- Martin ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners