[wp-hackers] Disable text formatting for posts?
Roberto Tavares
roberto at tavares.eng.br
Sun Jan 14 11:53:38 GMT 2007
Nop, it gets all in one line...
If I enter (on html box):
[code]
<pre>
line 1
line 2
</pre>
[/code]
I get on the database:
[code]
<pre>line 1 line 2</pre>
[/code]fim do teste
Is there a way to disable post formatting on editing?
Thanks!
Roberto
On 1/13/07, Dave W <dabbaking at gmail.com> wrote:
> Can you wrap it in <pre> tags?
>
> On 1/13/07, Roberto Tavares <roberto at tavares.eng.br> wrote:
> >
> > Hello,
> >
> > I'm doing a code formatter plugin (I'm new on wordpress plugin
> > development). I could make the visualization step. But I'm having a
> > problem...
> >
> > Is there a way to avoid the wp' edition to "cut out" the tabs and
> > whitespaces? (that is the last thing missing...)
> >
> > Example: when I post:
> > while ($hasMore) {
> > $i++;
> > $start = strpos($content, "[code]",
> > $offset)+6;
> > if ($start == false || $start < $offset) {
> > $hasMore = false;
> > I get on the database:
> > while ($hasMore) {
> > $i++;
> > $start = strpos($content, "[code]", $offset)+6;
> > if ($start == false || $start < $offset) {
> > $hasMore = false;
> >
> > Thanks!
> >
> > Roberto
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
> --
> Dave W
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list