Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there any tool for linux which makes it easier to generate and edit tables for markdown?

share|improve this question

3 Answers 3

If you are Emacs user there are two modes that should help you if you are working with markdown.

First mode is markdown-mode that helps you with all typical markdown tags. In this major mode there are keyboard shortcuts for inserting links, images, headers, etc and for "compiling" markdown to html using third party apps (like Markdown or python-markdown2).

Tool that can help you with tables in markdown mode is orgmode that provides minor mode orgtbl-mode. This mode provides bindings to work with tables in format:

| Header | Test |
|--------+------|
|      1 | ?    |
|      2 | ?    |

When you turn it on, write |some text and press Tab orgtbl-mode will add next |. Tab also allows you to change cells of table and aligning text and tables. There is also possibility to move colums/rows, killing them and more. Detailed instruction you can find in The built-in table editor chapter in org-mode documentation.

share|improve this answer

You can do a lot with macros in vim.

Use qa to record a macro named "a", q to stop recording, @a to play it back and 100@a to play it back 100 times.

share|improve this answer
    
Im using emacs and don't know vim very well. Is it possible to do something similar in emacs? –  student Jan 13 '12 at 18:45
    
@student: Yes, IIRC the key combination is C-x ( to start recording, C-x ) to stop and C-x e to execute. –  Ulrich Schwarz Feb 12 '12 at 18:38

I know of ReText, not used if not to try, but seems promising.
It should support tables through markdown extensions.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.