WordPress.org

Ready to get started?Download WordPress

Forums

[FR] converting code lines (5 posts)

  1. Ozh
    Member
    Posted 10 years ago #

    Hi
    Here is a feature I'd like to see added in WP : the ability to write code in news post, ie lines that would be "de-htmlized", just like "backticks" in this forum.
    (basically, adding a nice [Code] button to the quicktags interface, which would convert <> into < > and use a monotype font)
    Thanks, Ozh

  2. carthik
    Member
    Posted 10 years ago #

    I agree, but then I always use the WP encoder.
    WordPress Encoder.

  3. Ozh
    Member
    Posted 10 years ago #

    well, I had coded more or less the same thing myself, I didnt know about this stuff. But I'd like to see it implemented still :)
    Thanks for the url anyway

  4. Stevarino
    Member
    Posted 10 years ago #

    I honestly thought this sounded really cool last night and developed a hack for it. The problem however is that several WP functions don't like these sorts of things - specifically wpautop and balancetags.
    And I just realized the solution. :D I'll look at it again when I get home.

  5. Ozh
    Member
    Posted 10 years ago #

    Any improvements on this Stevarino ? :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.