Return-Path: Delivered-To: apmail-incubator-jspwiki-user-archive@minotaur.apache.org Received: (qmail 45505 invoked from network); 9 Dec 2009 22:14:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Dec 2009 22:14:04 -0000 Received: (qmail 24741 invoked by uid 500); 9 Dec 2009 22:14:03 -0000 Delivered-To: apmail-incubator-jspwiki-user-archive@incubator.apache.org Received: (qmail 24720 invoked by uid 500); 9 Dec 2009 22:14:03 -0000 Mailing-List: contact jspwiki-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-user@incubator.apache.org Delivered-To: mailing list jspwiki-user@incubator.apache.org Received: (qmail 24710 invoked by uid 99); 9 Dec 2009 22:14:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 22:14:03 +0000 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=HTML_FONT_FACE_BAD,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dirk.frederickx@gmail.com designates 209.85.218.210 as permitted sender) Received: from [209.85.218.210] (HELO mail-bw0-f210.google.com) (209.85.218.210) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 22:13:56 +0000 Received: by bwz2 with SMTP id 2so6005415bwz.20 for ; Wed, 09 Dec 2009 14:13:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=2NoTbY55TnB3AqVK/POFukm8bz8enuzLd59ckEc82/w=; b=xHn4y8lu6jmJs5QnVxc3ZLp8meOH1fR2bolVpEYaXvR8mZk2ghEojWpZ2SYHFL3ke5 Cf4q7yvlHXH6kIRqdX+Pona3HHCQiu8IkMJ8aggqzHJLbaLVJ7hrnAXneqQ0qp/xCX6y 437Gdbe4ci9vEx5Cvx3XYJjrDiUyG0mXmoRjo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=VEZROGc80tP/BBOPI0Gj0XAzo9drxzPMc6//o1WvNxqrd9yhBoJpr9oCyvDo2pqLzk f2AZ1BRUJbocEdUDFh2mtX3ZpB9znSC7qFnL+U2jY92v/p0rWbxs6PNOyNbJK5HcDdsk ueTX/fib8lOSTE574L8fXkXNIVKic+FBFvyg8= MIME-Version: 1.0 Received: by 10.204.10.2 with SMTP id n2mr1000111bkn.91.1260396815930; Wed, 09 Dec 2009 14:13:35 -0800 (PST) In-Reply-To: References: <4B1FF2BC.9020906@sun.com> <15cc92000912091216g66e2f55dme359a581e7ede63@mail.gmail.com> <4B200673.6050003@sun.com> <92FF1D81-5ECC-43DE-98E7-D29951981C4D@ecyrd.com> Date: Wed, 9 Dec 2009 23:13:35 +0100 Message-ID: <15cc92000912091413v62ad9026xc699a0fa96e4901f@mail.gmail.com> Subject: Re: Italics in code lines From: Dirk Frederickx To: jspwiki-user@incubator.apache.org Content-Type: multipart/alternative; boundary=00032555abda7d54fb047a530039 X-Virus-Checked: Checked by ClamAV on apache.org --00032555abda7d54fb047a530039 Content-Type: text/plain; charset=ISO-8859-1 Of course, you can further exploit the powers of css: %%(white-space:pre; ) $ cd ''install''-dir/bin More __markup__ lines here. /% and if you want to give it the look of a {{{ }}} block : %%(margin:1em 1.5em;padding:0.5em;background:#f9f9f9; border:1px solid #ddd;) %%(white-space:pre; ) $ cd ''install''-dir/bin More __markup__ lines here. /% /% dirk On Wed, Dec 9, 2009 at 10:10 PM, Bob Paige wrote: > I'm using JSPWiki 2.6.3 and this solution doesn't *quite* work. The > box is not spaced properly, is not indented, and the font is not > Courier. > > Is this solution specific to a newer version of JSPWiki? > > -- > Bobman > > On Wed, Dec 9, 2009 at 3:45 PM, Janne Jalkanen > wrote: > > > > How about using the CSS directly? > > > > %%(white-space:pre;border:1px solid #ddd;) > > cd ''install''-dir/bin > > %% > > > > You can add as much css as you want, or you can create your own style in > a > > local CSS file and refer to it as > > > > %%code > > cd ''install''-dir/bin > > %% > > > > /Janne > > > > On Dec 9, 2009, at 22:20 , Lana Frost wrote: > > > >> Thanks Dirk, > >> > >> That works but unfortunately most of our code samples span multiple > lines > >> so I was hoping to be able to use the code block. > >> > >> Thanks, > >> Lana > >> > >> Dirk Frederickx wrote: > >>> > >>> Lana, > >>> > >>> You could do something like this: > >>> > >>> {{$ cd ''install''-dir/bin}} > >>> > >>> > >>> dirk > >>> > >>> > >>> On Wed, Dec 9, 2009 at 7:55 PM, Lana Frost wrote: > >>> > >>> > >>>> Hi, > >>>> > >>>> Is it possible in JSPwiki to include italicized font in a code sample? > >>>> > >>>> What I want is this > >>>> > >>>> $ cd /install-dir//bin > >>>> > >>>> What I've tried is this: > >>>> > >>>> {{{ > >>>> $ cd ''install-dir''/bin > >>>> }}} > >>>> > >>>> but the quotes are returned literally, so: > >>>> > >>>> $ cd ''install-dir''/bin > >>>> > >>>> Is there a way to do this? > >>>> > >>>> Thanks, > >>>> Lana > >>>> > >>>> > >>>> > >>> > >>> > > > > > --00032555abda7d54fb047a530039--