[wp-hackers] Disable text formatting for posts?

Dave W dabbaking at gmail.com
Sat Jan 13 14:07:24 GMT 2007


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


More information about the wp-hackers mailing list