Bat: Any plans to support syntax highlighting for emacs org-mode file?

Created on 1 May 2018  路  11Comments  路  Source: sharkdp/bat

Hi, do you have any plans to support syntax highlighting for emacs org-mode file, which is also a markup language?

org-mode: https://orgmode.org

An example:

syntax-request

Most helpful comment

Released in bat v0.12.

All 11 comments

Sounds good!

Could you please point me to a Sublime Text syntax definition and an example orgmode file?

Although I am not using sublime text, I tried searching and found one. Do not know if this is satisfied.

https://github.com/danielmagnussons/orgmode

Unfortunately, we will need a .sublime-syntax file if we want to support this.

I am going to close this for now, as there does not seem to be a huge need for this (and we have customization options, see README). Feel free to comment here if you want me to reopen this.

I have found a .sublime-syntax for org-mode at https://github.com/dim-an/Zorgmode. Using it with bat it doesn't seems to colorize much, I only get source code highlighted...

I wasn't able to convert https://github.com/danielmagnussons/orgmode with sublime, it never produced a file. Fortunately it worked with https://github.com/jezcope/Org.tmbundle, the colorization seems enough to me. You can find the converted .sublime-syntax file here.

Thank you for looking into this. Happy to add this to bat if somebody wants to work on this.

Is Org highlighting working for now?

I opened some file with .org extension but not worked, and I tried bat --list-languages and Org not found.

$ bat --version
bat 0.11.0

No release contains the PR yet: v0.11.0...master.

Exactly. I hope I can put out a new release soon.

Released in bat v0.12.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sharkdp picture sharkdp  路  3Comments

scalp42 picture scalp42  路  3Comments

mjlbach picture mjlbach  路  3Comments

gAmUssA picture gAmUssA  路  3Comments

tomgoren picture tomgoren  路  3Comments