MakeDoc

MakeDoc

MakeDoc is a lightweight markup language created in 2000 by Carl Sassenrath for creating documentation and web pages using simple text notations[1]. The language is used extensively in the REBOL community for documentation, websites, and wikis.

Contents

Overview

MakeDoc was originally designed to allow authors to create formatted documentation without the need for word processing software[2]. Any ordinary text editor, including web input forms can be used for input, and the output can be HTML, PDF, or ordinary text[2].

An additional goal of MakeDoc was that the text input format itself should be readable -- uncluttered with markup notations commonly found in the SGML-based markup languages such as HTML and XML. This was done to enable distribution of documentation for software packages, where often such documents are being viewed (or even created) in text-only command shells.

Basic Format

The format of MakeDoc is intended for input and editing from any text editor, including those often used in shell-environments, such as VI and Emacs.

Titles, headings, and paragraphs

Title of document

    Optional boiler plate
    Such as author name, date, etc.

=== Primary headings

This is an example paragraph. All this text will remain in
the same paragraph until a blank line is reached.

This is a separate paragraph.

--- Subheading

Text continues from here...

Command Lines

Bullets, numeric lists, definitions, and other special document formats are notated by beginning a line with a special character.

For example:

*Bullet item

*Another 

#Numbered item

#Another numbered item

Other command lines begin with an equal (=) followed by the command itself.

For example, to include an image:

=image nyc.jpg

Many other commands are also provided. See the reference links below.

Special Commands

The language also allows the evaluation (execution) of code sections in order to produce the results for example or output images. This make it possible to accurately generate code sections that contain accurate results.

For example, if the command:

=view

follows a code example, the processor will automatically generate an image of whatever the code displayed in its window.

Processing the Language

The MakeDoc language is processed using a free script under an open BSD license[3]. Its source code is written in the REBOL language and is only about 17KB.

The processor is divided into a text-input scanner and a output generator. The scanner output is in REBOL block format and can be input in to one of several output formatters.

The output generator for HTML is included in the standard MakeDoc script. Output generators for PDF are separate.

References

  1. ^ REBOL MakeDoc Page
  2. ^ a b Origins of MakeDoc
  3. ^ MakeDoc source (BSD open source)

See also


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Générateur de documentation — Un générateur de documentation est un outil de programmation qui crée de la documentation destinée aux programmeurs (il s agit alors d une documentation d API) ou aux utilisateurs finaux (il s agit alors d un guide d utilisateur) ou encore les… …   Wikipédia en Français

  • Lightweight markup language — A lightweight markup language is a markup language with a simple syntax, designed to be easy for a human to enter with a simple text editor, and easy to read in its raw form. Lightweight markup languages are used in applications where people… …   Wikipedia

  • Documentation Logicielle — La documentation logicielle est un texte écrit qui accompagne le logiciel informatique. Elle explique comment le logiciel fonctionne, ou comment on doit l employer. Le terme peut avoir des significations différentes pour des personnes de… …   Wikipédia en Français

  • Vereinfachte Auszeichnungssprache — Eine Vereinfachte Auszeichnungssprache ist eine Auszeichnungssprache mit einer einfachen Syntax, um Dokumente einfach manuell erstellen und lesen zu können. Meist werden Dokumente für die endgültige Darstellung in eine gewöhnliche… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”