Re: Working on pygments

2019-03-20 Thread Edward K. Ream
On Tuesday, March 19, 2019 at 2:57:31 PM UTC-5, Edward K. Ream wrote: Using the pygments syntax colorer would be an > important addition to Leo. This is #568 > . Imo, it should be > part of the last python 2 version of

Re: ENB: Leo will use Jupyter's coloring code

2019-03-20 Thread Edward K. Ream
On Wed, Mar 20, 2019 at 9:15 AM john lunzer wrote: Can you comment you on the impact in performance using this code will have? > Good question. Using pygments should greatly improve performance. The pygments token parsers use regex's, which should be substantially faster than Leo's existing

Re: ENB: Leo will use Jupyter's coloring code

2019-03-20 Thread john lunzer
Can you comment you on the impact in performance using this code will have? On Wednesday, March 20, 2019 at 8:22:36 AM UTC-4, Edward K. Ream wrote: > > The Jupyter syntax coloring code > > > from Jupyter's

ENB: Leo will use Jupyter's coloring code

2019-03-20 Thread Edward K. Ream
The Jupyter syntax coloring code from Jupyter's qt_console package appears to be exactly what Leo needs to use pygments for syntax coloring! This is a much-needed breakthrough. The Jupyter code is an