emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Francis J. Monari, Esquire" <monarifj.esq@juno.com>
To: emacs-orgmode@gnu.org
Subject: emac org literal examples
Date: Thu, 19 Mar 2015 17:02:22 -0400	[thread overview]
Message-ID: <550B395E.2030201@juno.com> (raw)

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	other threads:[~2015-03-19 21:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=550B395E.2030201@juno.com \
    --to=monarifj.esq@juno.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).