RE: Any ReST aware editors?

2016-09-22 Thread Gerald Britton
>
> I have editors which will use syntax highlighting on .rst files, but I'm
> hoping for something a bit smarter. What I'd like is an editor with a
> split window, one side showing the rst
> that I can edit, the other side showing the formatted text updated as I
> type. (Or at least, updated every thirty seconds or so.) Anybody know
> anything like that?


Visual Studio Code does an OK job with the

reStructuredText Language Support for Visual Studio Code

Extension
-- 
Gerald Britton, MCSE-DP, MVP
LinkedIn Profile: http://ca.linkedin.com/in/geraldbritton
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Any ReST aware editors?

2016-09-22 Thread Manolo Martínez
On 09/23/16 at 01:20am, Chris Angelico wrote:
> If I were doing this, I'd simply have a script that watches the .rst
> file and rebuilds a corresponding output file, which can then be shown
> in another window, completely separate to the editor. 

[when-changed]://github.com/joh/when-changed) is a handy little script
that does just this. For this use case I do:

when-changed doc.rst make doc.pdf

where the makefile calls [pandoc](http://pandoc.org/MANUAL.html)

Manolo
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Any ReST aware editors?

2016-09-22 Thread Chris Angelico
On Thu, Sep 22, 2016 at 9:13 PM, Steve D'Aprano
 wrote:
> What I'd like is an editor with a split window, one side showing the rst
> that I can edit, the other side showing the formatted text updated as I
> type. (Or at least, updated every thirty seconds or so.)
>

If I were doing this, I'd simply have a script that watches the .rst
file and rebuilds a corresponding output file, which can then be shown
in another window, completely separate to the editor. Advantage:
Requires no editor integration, so you can use any editor you like.
Disadvantage: Can't see changes until you save. Advantage: Forces you
to save frequently :)

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Any ReST aware editors?

2016-09-22 Thread José Abílio Matos
On Thursday, September 22, 2016 9:13:02 PM WEST Steve D'Aprano wrote:
> I have editors which will use syntax highlighting on .rst files, but I'm
> hoping for something a bit smarter.
> 
> What I'd like is an editor with a split window, one side showing the rst
> that I can edit, the other side showing the formatted text updated as I
> type. (Or at least, updated every thirty seconds or so.)
> 
> Anybody know anything like that?

Maybe ReText (https://github.com/retext-project/retext)

There is a short introduction at
https://lwn.net/Articles/686879/

Regards,

--
José Matos
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Any ReST aware editors?

2016-09-22 Thread Marko Rauhamaa
Steve D'Aprano :

> What I'd like is an editor with a split window, one side showing the
> rst that I can edit, the other side showing the formatted text updated
> as I type. (Or at least, updated every thirty seconds or so.)
>
> Anybody know anything like that?

Open a .rst file in emacs and press C-c C-c C-p to see a PDF output of
the file.

On fedora, you need:

dnf install rst2pdf xpdf


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Any ReST aware editors?

2016-09-22 Thread Jon Ribbens
On 2016-09-22, Yann Kaiser  wrote:
> On Thu, Sep 22, 2016, 12:59 Jon Ribbens  wrote:
>> On 2016-09-22, Steve D'Aprano  wrote:
>> > I have editors which will use syntax highlighting on .rst files, but I'm
>> > hoping for something a bit smarter.
>> >
>> > What I'd like is an editor with a split window, one side showing the rst
>> > that I can edit, the other side showing the formatted text updated as I
>> > type. (Or at least, updated every thirty seconds or so.)
>> >
>> > Anybody know anything like that?
>>
>> There's dillinger.io if online is ok.
>
> Does that work with with ReST?

Ah, apologies, ignore me, I was forgetting that ReST and MD
are not the same.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Any ReST aware editors?

2016-09-22 Thread Yann Kaiser
Does that work with with ReST?

On Thu, Sep 22, 2016, 12:59 Jon Ribbens  wrote:

> On 2016-09-22, Steve D'Aprano  wrote:
> > I have editors which will use syntax highlighting on .rst files, but I'm
> > hoping for something a bit smarter.
> >
> > What I'd like is an editor with a split window, one side showing the rst
> > that I can edit, the other side showing the formatted text updated as I
> > type. (Or at least, updated every thirty seconds or so.)
> >
> > Anybody know anything like that?
>
> There's dillinger.io if online is ok.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
Yann Kaiser
kaiser.y...@gmail.com
yann.kai...@efrei.net
+33 6 51 64 01 89
https://github.com/epsy
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Any ReST aware editors?

2016-09-22 Thread Jon Ribbens
On 2016-09-22, Steve D'Aprano  wrote:
> I have editors which will use syntax highlighting on .rst files, but I'm
> hoping for something a bit smarter.
>
> What I'd like is an editor with a split window, one side showing the rst
> that I can edit, the other side showing the formatted text updated as I
> type. (Or at least, updated every thirty seconds or so.)
>
> Anybody know anything like that?

There's dillinger.io if online is ok.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Any ReST aware editors?

2016-09-22 Thread jkn
Hi Steve

On Thursday, September 22, 2016 at 12:13:16 PM UTC+1, Steve D'Aprano wrote:
> I have editors which will use syntax highlighting on .rst files, but I'm
> hoping for something a bit smarter.
> 
> What I'd like is an editor with a split window, one side showing the rst
> that I can edit, the other side showing the formatted text updated as I
> type. (Or at least, updated every thirty seconds or so.)
> 
> Anybody know anything like that?

I am not certain, but I am pretty sure that the Leo 'outlining' editor (written 
in Python) allows you to do just that, via its 'viewrendered' plugin.

Leo is an extremely capable editor which can work in a 'scripts + data' manner; 
you can write 'code as data' and intersperse this with Python code which acts 
on the data. FWIW this brief description barely begins to scratch the 
surface

Leo is cross-platform and open source; its main developer, Ed Ream, is very 
responsive to suggestions and feedback

http://leoeditor.com/

There is also a 'leo-editor' Google Groups

HTH
Jon N
-- 
https://mail.python.org/mailman/listinfo/python-list