WordPress.org

Ready to get started?Download WordPress

Ideas

HTML Syntax Highlighting in Post Editor

  1. atif089
    Member

    12345

    The title speak for itself.

    Implement Syntax highlighting to HTML part of post editor

    Posted: 2 years ago #
  2. in1985
    Member

    I really want this as well, I disable the visual editor all the time, and writing code in HTML editor is so painful without syntax highlighting.

    Is there a plugin to do this?

    Posted: 2 years ago #
  3. mdjekic
    Member

    Hi,

    Try Synchi...
    http://wordpress.org/extend/plugins/synchi/

    Regards.

    Posted: 2 years ago #
  4. I would recommend trying out WP Editor which has added this feature in the latest release.

    http://wordpress.org/extend/plugins/wp-editor/

    Posted: 1 year ago #
  5. DigiP
    Member

    12345

    Would be nice to have native syntax highlighting, and maybe line numbering as well so if working with multiple users on the same site, you can say to someone, "please fix line 25 of post such and such...".

    Only problem I have with using a Plug-in for this, is that most tend to be insecure, like fckeditor which is highly popular(and outdated on most sites from users who upgrade wordpress, but not their plug-ins), that allows file upload vulns.

    In all honesty, shouldn't be too hard to add to the core of WordPress, if plug-in authors are doing it already. I would feel much safer with a built in core function, knowing the code was scrutinized a bit more, and that bug fixes would come with every new WordPress release. Not to mention having the ability to maybe toggle it via the post/page editor, like one of the little icons above the post editor for visual editing, having one for HTML syntax highlighting with the ability to turn it on and off also makes sense, since not everyone will want to have it on all the time.

    By the way, this should be not only in the post/page editor, it should also be in the plug-in and theme editor sections as well, since PHP syntax highlighting would make so much more sense with line numbering to track errors as well.

    Posted: 1 year ago #
  6. Ipstenu (Mika Epstein)
    Administrator

    Only problem I have with using a Plug-in for this, is that most tend to be insecure, like fckeditor which is highly popular(and outdated on most sites from users who upgrade wordpress, but not their plug-ins), that allows file upload vulns.

    If a plugin is insecure and has upload vulnerabilities, PLEASE report that to plugins AT WordPress DOT org ASAP. We will review and close it.

    Meanwhile, if you check out CSS editor, which was added to Jetpack, it looks like folks are experimenting with syntax highlighting and line numbering in the CSS editor there, so maybe we'll get that soon.

    Posted: 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    7 Votes
  • Status

    This is plugin territory