Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

For completeness, I want to post one more thing -- a syntax highlighting file for vim that understands this mix of Scheme and Perl. It's a testament to vim's good design that something like this could be implemented so easily. This should be showing up in the March 2002 issue of Linux Magazine, so consider this a sneak preview.


" Scheme w/ Perl as a preprocessor " Language: Scheme+Perl " Maintainer: John Beppu <> " Last Change: 2001 Dec 17 " Location: " for portability if version < 600 syntax clear elseif exists("b:current_syntax") finish endif " load all of the scheme info source $VIMRUNTIME/syntax/scheme.vim unlet b:current_syntax " load all of the perl info into @Perl syntax include @Perl $VIMRUNTIME/syntax/perl.vim syntax region scmplPerl \ start=/{/ \ end=/}/ \ contains=@Perl, scmplPerl " the script header syntax match scmplSharpBang \ "^#!/usr/bin/env.*gimp-request.*$" " link syntax elements to standard highlighting groups if version >= 508 || !exists("did_scmpl_syn_inits") if version < 508 let did_scmpl_syn_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink scmplSharpBang PreProc endif " finish let b:current_syntax = "scmpl"

In reply to Re: How Scheme and Perl Became Friends by beppu
in thread How Scheme and Perl Became Friends by beppu

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    [nysus]: What happened to the submit button? All I have is a preview button.
    [erix]: perlmonks has become read-only ?
    [marto]: erix unlikely, we've had posts within the last few minutes ;)
    [ambrus]: nysus: make sure you enter at least two lines for the title and then preview, and read warnings the preview form prints
    [davies]: There is an option (I have it set) to force preview before submission. Perhaps your option has been set (accidentally?) and you are not expecting it.
    [ambrus]: sorry, I mean at least two words for the title and then preview
    [ambrus]: davies: that option is the default. and it's not really "force", it just hides the button.
    [marto]: yes, not reading the errors displayed has been a cause of this type of report in the past
    [nysus]: Ambrus, ah. I think that was the problem. I'll try. Thanks!

    How do I use this? | Other CB clients
    Other Users?
    Others about the Monastery: (14)
    As of 2017-12-15 11:31 GMT
    Find Nodes?
      Voting Booth?
      What programming language do you hate the most?

      Results (431 votes). Check out past polls.