mgaitan / sublime-rst-completion

Restructured Text snippets and code completion hotkeys for Sublime Text 2 and 3
BSD 3-Clause "New" or "Revised" License
250 stars 54 forks source link

Implement a better reStructuredText syntax highlighting #18

Open mgaitan opened 11 years ago

mgaitan commented 11 years ago

The syntax highlighting built-in with SublimeText is very poor (many users agree: 1, 2, 3)

Important things it doesn't hightlight are:

I've researched a bit to compare another editors with this content.

Hello
-----

:author: Martín Gaitán
:date: today ;-)

Lorem ipsum |genius| sit amet, consectetur

.. code-block::

    print 'Hello world'

| quoted
|     text

+------+-------+
| this | is    |
+======+=======+
| a    | table |
+------+-------+

* Link: `this is my blog`_
* Item 2 [1]_

.. |genius| replace:: Lionel Messi
.. [1] A footnote
.. _this is my blog: http://mgaitan.github.io

Sublime's built-in highlight with the default color schema (Monokai)

sublime-rst

Vim

vim-rst

Emacs

emacs rst

Notepad++

Using this plugin though Wine

notepadpp-rst

Sublime rst extended highlighting

This attemp didn't worked for me. It just changed the color of .. code-block:: directive.

sublime-rst-extended

gordonpro commented 10 years ago

yes! this is a very eagerly feature.

mgaitan commented 10 years ago

Kay-Uwe Lorenz did the work! https://bitbucket.org/klorenz/sublimerestructuredtext . Should we integrate this on our extension?

gordonpro commented 10 years ago

i demand