[Phpmyadmin-devel] Syntax highlighted SQL editor

Tyron Madlener tyronx at gmail.com
Mon Jul 25 21:47:38 CEST 2011


On Thu, Jun 2, 2011 at 4:15 PM, Michal Čihař <michal at cihar.com> wrote:
> Hi all
>
> as of now, the master branch contains CodeMirror 2 [1] editor which is
> being used for SQL editing. Please test and report any failures with it.
>
> The MySQL mode was written by me and keywords list is based on our SQL
> parser, so if something is missing there, most likely our SQL parser
> misses it as well :-).
>
> [1]:http://codemirror.net/
>

I really like codemirror but it's current version currently has a huge
drawback: no line wrapping.

When a user copy&paste a long query into the the editor it becomes an
unnerving hassle to edit the query. Like in my example:
http://www.tyron.at/tmp/codemirror_linewrap.png

It results in the codemirror extending extending really far
horizontally and you get 2 scrollbars. And whenever you type something
the scrollbars shift to the left again, somehow.

Maybe there's some plugin available we could use to remedy that.

> --
>        Michal Čihař | http://cihar.com | http://blog.cihar.com
>
> ------------------------------------------------------------------------------
> Simplify data backup and recovery for your virtual environment with vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today.
> http://p.sf.net/sfu/quest-sfdev2dev
> _______________________________________________
> Phpmyadmin-devel mailing list
> Phpmyadmin-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
>
>




More information about the Developers mailing list