How about an option near the text box to say what style you want. HTML (current style), TEXT and as a plus POD and ePod.
Will be very nice to can write our posts this:
outputThis is just a sample <p> Here's a new paragraph and a <b>bold</b> word. <p> Now some code: <code> #!/usr/bin/perl print "Hello World!\n" ; exit; <//code> Some itens: <ul> <li>item 1</li><br> bla bla bla <p> <li>item 2</li><br> bla bla bla <p> <li>item 3</li><br> bla bla bla <ul> By!
This is just a sample
Here's a new paragraph and a bold word.
Now some code:
Some itens:#!/usr/bin/perl print "Hello World!\n" ; exit;
This is just a sample Here's a new paragraph and no support for bold. Now some code, since the only tag suported is code: <code> #!/usr/bin/perl print "Hello World!\n" ; exit; <//code> Some itens: * item 1 bla bla bla * item 2 bla bla bla *item 3 bla bla bla By!
output
This is just a sample
Here's a new paragraph and no support for bold.
Now some code, since the only tag suported is code:
Some itens:#!/usr/bin/perl print "Hello World!\n" ; exit;
* item 1 bla bla bla
* item 2 bla bla bla
*item 3 bla bla bla
By!
This is just a sample Here's a new paragraph and a B<bold> word. Now some code: #!/usr/bin/perl print "Hello World!\n" ; exit; Some itens: =over 4 =item item 1 bla bla bla =item item 2 bla bla bla =item item 3 bla bla bla =back By!
output
This is just a sample
Here's a new paragraph and a bold word.
Now some code:
Some itens:#!/usr/bin/perl print "Hello World!\n" ; exit;
This is just a sample Here's a new paragraph and a B<bold> word. Now some code: #!/usr/bin/perl print "Hello World!\n" ; exit; Some itens: *> item 1 bla bla bla *> item 2 bla bla bla *> item 3 bla bla bla => A sub title Some test => By Enjoy!
output
This is just a sample
Here's a new paragraph and a bold word.
Now some code:
#!/usr/bin/perl print "Hello World!\n" ; exit;
Some itens:
bla bla bla
bla bla bla
bla bla bla
Some test
Enjoy!
TEXT:
POD:$input =~ s/\r\n?/<p>\n/gs ; # after this is just the normal process for HTML (current process).
ePod:use Pod::HtmlEasy ; my $p = Pod::HtmlEasy->new() ; $input = $p->pod2html($input , only_content => 1 , no_index => 1 ); # note that Pod::HtmlEasy can personalize the content generation, # where is possible to handle VERBATIM data directly to <code> # after this is just the normal process for HTML (current process).
use ePod ; $input = epod2pod($input) ; # after this is just like POD process: use Pod::HtmlEasy ; my $p = Pod::HtmlEasy->new() ; $input = $p->pod2html($input , only_content => 1 , no_index => 1 );
|
|---|