WordPress.org

Ideas

Line numbers in code editor and more features.

  1. Cameron Roe
    Member

    Although WordPress is meant to be used for it's awesome GUI interface. It would be nice for developers to be able to edit a pre-existing template that's already uploaded to the server and installed into WordPress.

    It would be great if the code editor under the appearance tab had a few more features. I think it would be a better workflow to include the following:
    - A more readable code font.
    - Line numbers.
    - Access to all the files associated with the theme provided the user has a special id logged in the WordPress account. (Could be implemented by WordPress to log a theme id into a users account for purchased themes; This would be secure.)
    - A larger area of code to work with.

    I hope you agree! Looking forward to future updates of WordPress.
    Cheers!

    Posted: 5 years ago #
  2. Ipstenu (Mika Epstein)
    Lead Plugin Wrangler

    - Access to all the files associated with the theme provided the user has a special id logged in the WordPress account. (Could be implemented by WordPress to log a theme id into a users account for purchased themes; This would be secure.)

    That won't happen any time soon. WP has no plans to become a sales ground.

    The code editor is a sticky subject, since you really shouldnt be editing a theme or plugin on the fly.

    Posted: 5 years ago #
  3. Cameron Roe
    Member

    I think if their going to have a code editor at all they should make it legitimate. At least line numbers would be nice.

    Posted: 5 years ago #
  4. eschwartz93
    Member

    12345

    Why is there an editor there to begin with?

    This would be a great way to help WP be an effective CMS done all through the dashboard. Log on to your WP installation and create themes/plugins...

    If not, why have it there to begin with?!?!?!?!

    I think line numbers at least is a must-have. If you are getting error messages line numbers would let you actually find where its coming from. Syntax highlighting would be great too. I'm not fussed about who can/can't use the editor, just leave it like it is, at the admin level. But the rest I think is good.

    Posted: 4 years ago #
  5. Ipstenu (Mika Epstein)
    Lead Plugin Wrangler

    Heh, we all argue a lot about if we should have an inline editor or not.

    Posted: 4 years ago #
  6. marktmccabe
    Member

    Is there a way or a plugin to detect line numbers in Editor?

    Posted: 2 years ago #
  7. Ipstenu (Mika Epstein)
    Lead Plugin Wrangler

  8. inspired888
    Member

    12345

    Another hand up for encouraging line numbers in the code editor. For me the argument that one should be editing themes and plugins on the fly is a valid and yet potentially irrelevant point. The editor is also used for adding code to a theme's style.css and functions.php file, and that's a common practice, and not necessarily to be discouraged.

    What's more, if there's an editor, why not make it a little more functional? Line numbering seems like a fairly basic feature for code editing.

    For now, I'll run with using a plug-in. There are quite a few, for anyone who's interested:
    https://wordpress.org/plugins/tags/code-editor

    Posted: 6 months ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    7 Votes
  • Status

    Sorry, not right now