WordPress.org

Ready to get started?Download WordPress

Forums

Monospaced font for html editor in tinyMCE (8 posts)

  1. jimmyink
    Member
    Posted 3 years ago #

    I know I could manually change this myself, but I manage over 30+ installations. Seems crazy to offer a view of code in a variable width font. Don't know how this has been overlooked for so long.

  2. You could use the <code> tag in your posts. That should force monospace.

  3. jimmyink
    Member
    Posted 3 years ago #

    It's not the output in the post I'm concerned about, it's the editor itself.

    The code editor in the Appearance section got an update about a year ago. I'd be more likely to work more within the html editor rather than copy and pasting back and forth with dreamweaver.

  4. Wait ... are we talking about the TinyMCE that comes with the POST editor or the THEME editor?

  5. jimmyink
    Member
    Posted 3 years ago #

    The TinyMCE editor that edits POSTS. You can switch to 'HTML' view and it uses Lucida Grande. I realize TinyMCE is also a 3rd party plug-in but I'm wondering why the HTML (code view) is displayed in a variable width font which is very unnatural for writing and viewing code in. Hopefully it can be modified so that it's using a font stack like the theme editor does e.g.'Consolas,Monaco,Courier,monospace'.

  6. Okay. The TinyMCE editor is commonly referred to as the 'visual' editor. And the other is the HTML editor. It's NOT a code editor, per say, it's just an editor in which you take 90% control over your HTML. Which isn't code, really, but now I'm wandering into semantics.

    Anywho! The poitn of that is the HTML editor is not intended to be 'easier' to write code. It's not intended for 'code' at all, but easier posting of content. And you can change the fonts: http://wordpress.org/support/topic/change-the-visual-editor-font-size?replies=11

  7. jimmyink
    Member
    Posted 3 years ago #

    Thanks for your input Ipstenu.

    I agree that it is only taking control over 90% of the HTML (to save us from our own bad habits and lack of standards) but you'd have to agree that if you are going to be editing HTML, regardless of how crippled it is, it would be easier using a monospaced font.

    Slightly off topic, but do you know the reason why there is a lack of control over the HTML in the content? e.g. hiding/adding p tags

  8. The auto_p is the only enforced tag I could think of at the time, and I suspect it's because using br to separate lines is bad form.

    I've never had a problem with the font in the editing window, unless I'm actually writing code blubs, which I usually do in my code editor and paste them in.

Topic Closed

This topic has been closed to new replies.

About this Topic