A Scribble Post

/ post-sample

这是一篇scribble格式写的样例文章。
the source of this post is Scribble format (not Markdown). Here is some intro text, above "the jump".

Here’s some Bullshit Ipsum.

Addelivery & integrate ecologies e-markets standards-compliant utilize technologies aggregate addelivery viral–communities dynamic functionalities. Mindshare engineer viral A-list: cross-platform remix engage social cross-media social innovate distributed matrix experiences monetize utilize innovative. Action-items transition recontextualize sexy Cluetrain envisioneer, "vortals communities evolve technologies sexy methodologies." Enhance grow compelling iterate architect matrix plug-and-play reinvent scale, distributed incentivize, extend.

    A Section

      A SubSection

    1 Style Example:

      1.1 centered text:

      1.2 item list:

      1.3 tab:

      1.4 nested text block:

      1.5 margin-note:

      1.6 post links:

      1.7 racket doc links:

A Section🔗

I am some text.

A SubSection🔗

A codeblock such asuses curly braces and does retain comments:

;; Finds Racket sources in all subdirs
(for ([path (in-directory)]) ;; abcefg
  (when (regexp-match? #rx"[.]rkt$" path)
    (printf "source file: ~a\n" path)))
(define (foo #:bar bar)
  #t)

A racketblock uses square brackets and does not retain comments:

(for ([path (in-directory)])
  (when (regexp-match? #rx"[.]rkt$" path)
    (printf "source file: ~a\n" path)))
(define (foo #:bar bar)
  #t)

Here is a interaction:

; comments test
> (: my-sqr (Real -> Real))
> (define (my-sqr x) ; comments test ref to define
  (* x x))
> (my-sqr 42)

- : Real

1764

Here’s a fancier one:

> (require slideshow/pict)
> (define rainbow-colors
    '("red" "orange" "yellow" "green" "blue" "purple"))
> (for/list ([c rainbow-colors])
     (colorize (filled-rounded-rectangle 20 20) c))

'(image image image image image image)

> (for/list ([c rainbow-colors]
             [dir (in-cycle '(right left))])
    (standard-fish 25 25 #:color c #:direction dir))

'(image image image image image image)

> (cc-superimpose
   (cc-superimpose (cloud 100 80 "lightblue")
                   (cloud 90 70 "white"))
   (hc-append 10
    (standard-fish 30 30 #:color "red" #:direction 'right)
    (standard-fish 25 20 #:color "blue" #:direction 'left)))

image

Here’s an example of using Pygments to syntax highlight non-Racket code:

1
2
3
function foo() {
  return 7;
}

1  Style Example:🔗

1.1  centered text:🔗

centered text
centered line.
centered line.
centered line.

1.2  item list:🔗

1.3  tab:🔗

Animal

     

Food

mouse

     

cookie

moose

     

muffin

1.4  nested text block:🔗

nested text block
nested text block
nested text block
nested text block

1.5  margin-note:🔗

this is a here, detail please check: margin-note

1.6  post links:🔗

a-scribble-post

1.7  racket doc links:🔗

check doc: the other-doc-link-sample documentation

See also: Pairs and Lists

the other-doc-link-sample documentation

(part ("(collects yanying-wang _src posts 2013-06-19-a-scribble-post.scrbl)" "pairs"))