Hello, I am using org-mode for technical documentation (server configurations etc.) I use extensively the preformatted text to show a bunch of commands or pieces of configuration files. While #+BEGIN_EXAMPLE and #+END_EXAMPLE is OK, it looks a bit awkward and a bit inconsistent with the rest of the light and beautiful markup of org-mode. I have no idea about how easy or difficult would be to implement it, but I think that it would be nice to have some markup like these: --8<-- -->8-- instead of #+BEGIN_EXAMPLE #+END_EXAMPLE Just wanted to let you know about this idea, maybe somebody can pick it up. Have a nice day, Dashamir
Dashamir Hoxha <dashohoxha@gmail.com> writes:
Hi Dashamir,
> I have no idea about how easy or difficult would be to
> implement it, but I think that it would be nice to have
> some markup like these:
> --8<--
> -->8--
> instead of
>
> #+BEGIN_EXAMPLE
> #+END_EXAMPLE
You could prefix your snippets with ":", e.g., this is also a
preformatted snippet.
: /dev/sda1 /boot ext2 noauto,noatime 1 2
: /dev/sda3 / ext4 noatime,user_xattr 0 1
: /dev/sda2 none swap sw 0 0
: /dev/cdrom /mnt/cdrom auto noauto,ro 0 0
: debugfs /sys/kernel/debug debugfs defaults 0 0
Bye,
Tassilo
And if you just avoid too much typing
<e TAB
will insert
#+BEGIN_EXAMPLE
#+END_EXAMPLE
On Mar 29, 2012, at 12:23 PM, Tassilo Horn wrote:
> Dashamir Hoxha <dashohoxha@gmail.com> writes:
>
> Hi Dashamir,
>
>> I have no idea about how easy or difficult would be to
>> implement it, but I think that it would be nice to have
>> some markup like these:
>> --8<--
>> -->8--
>> instead of
>>
>> #+BEGIN_EXAMPLE
>> #+END_EXAMPLE
>
> You could prefix your snippets with ":", e.g., this is also a
> preformatted snippet.
>
> : /dev/sda1 /boot ext2 noauto,noatime 1 2
> : /dev/sda3 / ext4 noatime,user_xattr 0 1
> : /dev/sda2 none swap sw 0 0
> : /dev/cdrom /mnt/cdrom auto noauto,ro 0 0
> : debugfs /sys/kernel/debug debugfs defaults 0 0
>
> Bye,
> Tassilo
>
>