emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] emac org literal examples


From: Francis J. Monari, Esquire
Subject: [O] emac org literal examples
Date: Thu, 19 Mar 2015 17:02:22 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Literal Examples seem to begin with the following pattern: "#+BEGIN_"*.
 The * is often replaced by "SRC" "EXAMPLE" "VERBATIM", etc..

Org Mode also recognizes Literal Examples with 'nonstandard' endings,
e.g. "#+BEGIN_LANGUAGE".  Should users rely on these 'nonstandard'
Literal Examples being recognized in the future?

The "SRC" and "EXAMPLE" 'endings' receive special treatment, e.g. using
"SRC" the user can edit the Literal Example in a specific environment,
e.g. fundamental mode, enriched mode, or - of course - a mode designed
to work with a specific programing language.  How are the endings that
receive special treatment identified or registered?  Is is possible to
expand the set of endings that receive special treatment?

The ability to collapse specific lines of text with a title that can be
edited in a specific environment is a very powerful feature.  I do not,
however, want to misuse the feature or overload the "SRC" ending.  (The
"SRC" ending seems best reserved for programming languages or emacs modes.")

examples of the proposal:

1. The "HTML" ending could allow syntax highlighting.  The "SRC" ending
provides this for code.

2.
#+BEGIN_LANGUAGE Spanish
#+END_LANGUAGE
The literal example might then be edited in an environment convenient
for Spanish.

Thank you,

Frank.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]