7 ms·
Looks pretty nice. One nit: : Simple pre-formatted text such as for source code. : This also respects the line breaks. *bold* is not bold here. This m
by WalterBright 9y ago
Looks pretty nice. One nit:
: Simple pre-formatted text such as for source code.
: This also respects the line breaks. *bold* is not bold here.
This makes it annoying to cut/paste code in and out of the markup text. It's better to use a block syntax for that, like:
```
Simple pre-formatted text such as for source code.
This also respects the line breaks. *bold* is not bold here.
```
- bitwize 9y ago> This makes it annoying to cut/paste code in and out of the markup text. Well, not that annoying because you're inside Emacs and operating on rectangles of text is a doddle. But the preferred syntax is to enclose the source code in #+BEGIN_SRC/#+END_SRC blocks anyway. Using this method also enables neat features, such as activating the appropriate major mode for each block of text and doing literate programming.
- koffiezet 9y ago> because you're inside Emacs No, I won't be. The article also stated: > Please do note that this is not about Emacs. This is about Org-mode syntax and its advantages even when used outside of Emacs. Sorry, but a "reasonable" markup language in my book would be one I would be comfortably using anywhere, meaning typing in manually (which I do a lot with markdown). #+BEGIN_SRC/#+END_SRC is too verbose and ':' as a line prefix impractical. This won't see any wide-spread adoption outside of the Emacs world, markdown's adoption is widespread and is here to stay I'm afraid, even though it has tons of pitfalls and different styles. For pretty much everything, it's "good enough", and some things make a lot more sense if you're actually typing the text.
- JoshMnem 9y agoIf using Evil mode or vim, it's just a few keystrokes to remove that. (ctrl-v to block select) Or <s TAB (or <q TAB) will create a block.
- juki 9y agoYou can use `C-c '` to edit the block in a new buffer without colons or indentation at the start.
- TeMPOraL 9y agoAs other mentioned, #+BEGIN_SRC / #+END_SRC (Emacs will expand "<s TAB" into that for you). There are also #+BEGIN_QUOTE, #+BEGIN_EXAMPLE, #+BEGIN_EXPORT and some others. They all represent blocks of special text, and have special meaning in Org Mode and/or in exports to other formats. For instance, a source block declared through "#+BEGIN_SRC language" can have syntax highlighting enabled using appropriate language mode in Emacs, can be easily edited (C-c ') in that mode, and can be also set to automatically evaluate and print results in the document (kind of like Jupyer Notebooks, except in Emacs, but more advanced, and also supports full-blown literate programming use).
- bandrami 9y agoAs somebody who writes a poetry blog (from org-mode), I've learned the love #+BEGIN_VERSE, which respects text decoration markup but otherwise leaves formatting intact.
- usr1106 9y agoFor an emacs user inserting "a column" of colon-space in front of some pasted text is pretty easy to do. But then even emacs users are often forced to type text outside of emacs. Using backquotes (as required in bitbucket) is uncomfortable with my non-English keyboard. I have to type 6 backquotes instead of 3 because backquote is a deadkey
- deleted 9y ago[deleted]
- gkya 9y agoEmacs has rectangular editing so thats no big deal if one's using org mode in emacs.
- Jaxan 9y agoSo the argument that it is easy to write in any editor is not completely true then?
- gkya 9y agoYes, kind of. The true advantage of Org-Mode is the extensibility, which comes from it being implemented in Emacs Lisp and living in Emacs. That's how people have been able to bolt on so many useful things on it like Babel (not the JS thing) and the export mechanism, and how you can have many types of useful links both inter- and infratextual. It's so easy to link somewhere in the document, in the file system, in your mail boxes, and to some piece of code etc. Editing functionalities help, but Markdown too has similar stuff (spaces before code, > before quotes, etc.). The actual benefit of Org mode in emacs is that I can really easily program it to do what I want. I use the same tool to digitise and store my prose; create PDF documents with citations and whatnot; store all my personal and lecture notes; keep, interact with and browse my agenda; keep executable notes from my shell sessions with links to documentation and screenshots etc (a la IPython); and publish my website; and all these documents are easily hyperlinkable, and anywhere in them I can have to-do notes that I can easily have pop up in my agenda, and then export to ICS or CalDav to access them from my mobile phone (there are MobileOrg and Orgzly for viewing documents on mobile, I use the latter). I don't know how you can do such things in another environment than Emacs, while both providing the same interactiveness, the same extensibility, the same customisability, and remaining resource-efficient on the computer and using only a single programming and configuration language.
- npsimons 9y ago> The true advantage of Org-Mode is the extensibility, which comes from it being implemented in Emacs Lisp and living in Emacs. I feel this cannot be overstated. I am finally moving from a 2009 Nokia N900 to Android only because I know I can run Emacs+org-mode in Termux on it, and I can get a hardware keyboard.
- 1wd 9y agoOr {{{ }}} as used by Creole. Unlike Org-mode, which despite the OP's claims is not at all standardized, Creole is an actually standardized [1] (but probably still under-specified) lightweight markup language. As shown on the Wikipedia page [2] it has pretty much all the other mentioned advantages. Another important advantage of using block syntax is that it offers a natural uniform extension mechanism, potentially even with auto-completion for improved discoverability. For example Trac uses this for source code highlighting and plugins.[3] [1] http://www.wikicreole.org/wiki/Creole1.0 http://www.wikicreole.org/wiki/Creole1.0 [2] https://en.wikipedia.org/wiki/Creole_(markup) https://en.wikipedia.org/wiki/Creole_(markup) [3] https://i.imgur.com/zbkU670.gif https://i.imgur.com/zbkU670.gif
- deleted 9y ago[deleted]
- rabidrat 9y ago> Ignore // for italics processing if immediately following http: or ftp: That kind of special casing is pretty much a deal-breaker. Other schemes (anyone ever heard of https?) will need that same deal.
- npsimons 9y ago> This makes it annoying to cut/paste code in and out of the markup text. Open it in it's own pane with C-c ' and you can cut and paste to your heart's content.