Beautify your code (5 posts)

  1. Cena
    Posted 12 years ago #

    Hmm...I'm trying this out but I'm getting a blank page once it's all said and done. Restoring the original textile.php seems to correct this. Is it necessary to change the single character global variables, or can they be left intact?

  2. Jaykul
    Posted 12 years ago #

    Well, when I left them intact, I kept getting "there are no posts that match..." on my page.
    Did you just copy my version of the file? (if you click the link in the article, you can click the name of the file at the top to see it without line numbers (so you can copy and paste).

  3. Jaykul
    Posted 12 years ago #

    Hey, just a couple questions: I was sort-of assuming that nobody was interested in this, and then I looked at my server logs and it looks like I've gotten a few hits from this thread ... so (if anyone out there in dev-land is reading):
    1) Since I assume that code beautifying isn't in high demand, this probably doesn't belong in the default WordPress install, but can I get this put on the 'official hacks' page?
    2) Is there any particular reason why WordPress has it's own "wptexturize" instead of just using the 'lite' textile option (or even a very simple modification to make a 'liter still' option) ?

  4. Matt Mullenweg
    Posted 12 years ago #

    Because texturize does a lot more than textile with regards to typographic entities. Textile is more focused on a shorthand formatting meta-language, parts of which will possibly be integrated in the future.

  5. Jaykul
    Posted 12 years ago #

    Hmm. I know on the MT-Textile plugin they used another plugin (SmartyPants) to handle encoding quotes and such ... I think Beta 2 of Textile does a lot more of that ... but I guess my next question is: can we make texturize just handle entity encoding (or make that part of it seperate)?
    The thing is, I depend on this shorthand entry stuff, it saves me a ton of time. Plus, it enhances the safety of my site, because I don't allow html in my comments at all (but you can format using Textile's shorthand. But I'd still like the nice typographical corrections ... actually, what I would REALLY like is for the typographical corrections to be made on the way IN to the database ...
    I'll post more about this in a feature request.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.