
Uses "Github flavored markdown". Specifically, code blocks are opened using ```scheme so that Github will lex and format them as Scheme code rather than generic monospace. Note: I would have used ```racket, but we are still waiting for the pygments.rb project to pull again from pygments-main -- to which I contributed a Racket lexer back in August. After pygments.rb pulls, can update this to use ```racket instead. original commit: 6aa6dc0400f4fed688e6f5b5278da2e34d82ad88
53 lines
1.3 KiB
Racket
53 lines
1.3 KiB
Racket
#lang scribble/doc
|
|
|
|
@(require scribble/manual
|
|
(for-label racket/base racket/contract racket/string))
|
|
|
|
@defmodule[racket/string]
|
|
|
|
@itemize[
|
|
@item{Item 1.}
|
|
@item{Item 2.}
|
|
]
|
|
|
|
@section{Section}
|
|
|
|
@italic{Italic}.
|
|
_Just underlines_.
|
|
|
|
@bold{Bold}.
|
|
*Just asterisks.*
|
|
|
|
``Dobule quoted''.
|
|
`Single quoted'.
|
|
|
|
@verbatim{
|
|
Hi, world.
|
|
A ``quote''.
|
|
Second line.
|
|
Last line.
|
|
}
|
|
|
|
The end.
|
|
|
|
@verbatim{
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
}
|
|
|
|
@defproc[(make-string [k exact-nonnegative-integer?][char char? #\nul]) string?]{
|
|
|
|
Returns a new mutable string of length @racket[k] where each position in the
|
|
string is initialized with the character @racket[char]
|
|
|
|
}
|