Now that i've been hacking around with e2, it shouldn't bee too difficult to add something like that as a user setting.

I'll see this weekend about writing something up for javajunkies, and I'll see about porting it to perlmonks (jj v 1.0, pm v .8).

If I'm able to port the code to pm without too much tomfoolery, I'll submit a patch to vroom, but if not, it'll be available for sure when we port pm to v 1.0 of the e2 engine (zdog is in charge of the porting effort for all you pmdev guys).

As for xhtml compatibility, piss of (pm be a relic of the pre-standardization era, and anyway, it does pretty well anyway). Also, that is not gonna happen until we port pm to version 1 (or, in case OeufMayo should finish it before then, which I do not believe will happen, but he's a hard working guy, so you never know).

How this thing'd be laid out, is next to the title box, there will be a pulldown menu with the approved html tags in there, with a button next to it, that when pressed, will insert the selected approved html tag at the cursor in the big text area.

P.S. - I will be cleaning some code this weekend ;D

update: It's been a while since I abandoned javascript, so if anyone can provide me with working code (javascript, the javascript), that would do such a thing i'd really appreciate it. I'm beginning to doubt it is possible (short of having a layer, and recreating the form in that layer or some such nonsense, which I also do not feel like writing at the moment).

 
___crazyinsomniac_______________________________________
Disclaimer: Don't blame. It came from inside the void

perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"


In reply to (crazyinsomniac) Re: Insert HTML buttons. by crazyinsomniac
in thread Insert HTML buttons. by demerphq

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.