<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comentarios en: {WP-Syntax Hackeado} Cómo mostrar código fuente en los comentarios[1]</title>
	<atom:link href="http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/feed/" rel="self" type="application/rss+xml" />
	<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/</link>
	<description>Programando... Mi blog sobre programación, tecnología, web, software libre, videojuegos y más</description>
	<pubDate>Thu, 20 Nov 2008 11:52:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>Por: zetta</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3580</link>
		<dc:creator>zetta</dc:creator>
		<pubDate>Thu, 24 Jul 2008 22:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3580</guid>
		<description>Tu plugin no me quiere!!! 
=( 

&lt;pre lang="php"&gt;

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Tu plugin no me quiere!!!<br />
=(</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&nbsp;</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Por: zetta</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3579</link>
		<dc:creator>zetta</dc:creator>
		<pubDate>Thu, 24 Jul 2008 22:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3579</guid>
		<description>&lt;pre lang="php"&gt;

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;">&nbsp;</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Por: fernando</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3576</link>
		<dc:creator>fernando</dc:creator>
		<pubDate>Thu, 24 Jul 2008 19:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3576</guid>
		<description>Dedicado a jk:
&lt;pre lang="c"&gt;
&puntero;
estructura-&gt;nodo;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Dedicado a jk:</p>

<div class="wp_syntax"><div class="code"><pre class="c c" style="font-family:monospace;"><span style="color: #339933;">&amp;</span>puntero;
estructura<span style="color: #339933;">-&gt;</span>nodo;</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Por: fernando</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3573</link>
		<dc:creator>fernando</dc:creator>
		<pubDate>Thu, 24 Jul 2008 19:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3573</guid>
		<description>&lt;pre lang="php"&gt;
&lt;?php
     echo "Parece que llegamos a un acuerdo, y vamos a cambiar todo de nuevo por pre en vez de code...";
?&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
     <span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot;Parece que llegamos a un acuerdo, y vamos a cambiar todo de nuevo por pre en vez de code...&quot;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Por: fernando</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3570</link>
		<dc:creator>fernando</dc:creator>
		<pubDate>Thu, 24 Jul 2008 18:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3570</guid>
		<description>ATENTOS: El plugin sigue sujeto a modificaciones todavía, así que todos estos comentarios pueden o no quedar con el formato indicado en el futuro... 
Digamos que este post sirve como "sandbox" para seguir experimentando.

Son libres de seguir posteando código y encontrando errores.
Cuando se decida cómo va a quedar al final el plugin, y lleguemos a una versión "final", se publicará el código.</description>
		<content:encoded><![CDATA[<p>ATENTOS: El plugin sigue sujeto a modificaciones todavía, así que todos estos comentarios pueden o no quedar con el formato indicado en el futuro&#8230;<br />
Digamos que este post sirve como &#8220;sandbox&#8221; para seguir experimentando.</p>
<p>Son libres de seguir posteando código y encontrando errores.<br />
Cuando se decida cómo va a quedar al final el plugin, y lleguemos a una versión &#8220;final&#8221;, se publicará el código.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: fernando</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3568</link>
		<dc:creator>fernando</dc:creator>
		<pubDate>Thu, 24 Jul 2008 18:03:26 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3568</guid>
		<description>Luciano:
No deberían aparecer. Ignora el preview del comentario más abajo, porque no muestra el coloreado de sintaxis.
Tenés que escribir directamente los tags de código, sin comillas, y adentro escribir el código:
&lt;code lang="php"&gt;
&lt;? php
     echo "Esto es php";
?&gt;
&lt;/code&gt;

jk:
Gracias por las pruebas, voy a mirar por dónde ataco eso...</description>
		<content:encoded><![CDATA[<p>Luciano:<br />
No deberían aparecer. Ignora el preview del comentario más abajo, porque no muestra el coloreado de sintaxis.<br />
Tenés que escribir directamente los tags de código, sin comillas, y adentro escribir el código:<br />
<code lang="php"><br />
< ? php<br />
     echo "Esto es php";<br />
?><br />
</code></p>
<p>jk:<br />
Gracias por las pruebas, voy a mirar por dónde ataco eso&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: jk</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3567</link>
		<dc:creator>jk</dc:creator>
		<pubDate>Thu, 24 Jul 2008 17:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3567</guid>
		<description>En Test #2, en la lineas que preceden al IF se puede ver que el plugin no tradujo correctamente los simbolos de los punteros el "&#38;" y el "-&#62;", se muestran como "&#38; amp;" y "&#38; gt;" Te lo dejo como tarea. ;)

Excelente hack.</description>
		<content:encoded><![CDATA[<p>En Test #2, en la lineas que preceden al IF se puede ver que el plugin no tradujo correctamente los simbolos de los punteros el &#8220;&amp;&#8221; y el &#8220;-&gt;&#8221;, se muestran como &#8220;&amp; amp;&#8221; y &#8220;&amp; gt;&#8221; Te lo dejo como tarea. <img src='http://picandocodigo.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Excelente hack.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: jk</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3566</link>
		<dc:creator>jk</dc:creator>
		<pubDate>Thu, 24 Jul 2008 17:40:54 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3566</guid>
		<description>Test #2:

&lt;code lang="C"&gt;
void
player_play(void)
{
    gchar *uri = NULL;
    GString *prefix = g_string_new("file://");

    gtk_tree_model_get(GTK_TREE_MODEL(playlist_store), &#38;playlist_iter, 0, &#38;uri, -1);
        
    prefix = g_string_append(prefix, uri);
    uri = prefix-&#62;str;

    if(uri != NULL)
    {
        printf("Play %s\n", uri);

        loop = g_main_loop_new(NULL, FALSE);
        pipeline = gst_element_factory_make("playbin", "player");

        g_object_set(G_OBJECT(pipeline), "uri", uri, NULL);

        GstBus *bus;
        bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));
        gst_bus_add_watch(bus, bus_call, NULL);
        gst_object_unref(bus);

        gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_PLAYING);    
        g_main_loop_run(loop);
    }

    g_string_free(prefix, TRUE);
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Test #2:</p>
<p><code lang="C"><br />
void<br />
player_play(void)<br />
{<br />
    gchar *uri = NULL;<br />
    GString *prefix = g_string_new("file://");</p>
<p>    gtk_tree_model_get(GTK_TREE_MODEL(playlist_store), &amp;playlist_iter, 0, &amp;uri, -1);</p>
<p>    prefix = g_string_append(prefix, uri);<br />
    uri = prefix-&gt;str;</p>
<p>    if(uri != NULL)<br />
    {<br />
        printf("Play %s\n", uri);</p>
<p>        loop = g_main_loop_new(NULL, FALSE);<br />
        pipeline = gst_element_factory_make("playbin", "player");</p>
<p>        g_object_set(G_OBJECT(pipeline), "uri", uri, NULL);</p>
<p>        GstBus *bus;<br />
        bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));<br />
        gst_bus_add_watch(bus, bus_call, NULL);<br />
        gst_object_unref(bus);</p>
<p>        gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_PLAYING);<br />
        g_main_loop_run(loop);<br />
    }</p>
<p>    g_string_free(prefix, TRUE);<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: jk</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3565</link>
		<dc:creator>jk</dc:creator>
		<pubDate>Thu, 24 Jul 2008 17:39:38 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3565</guid>
		<description>Test:


void
player_play(void)
{
    gchar *uri = NULL;
    GString *prefix = g_string_new("file://");

    gtk_tree_model_get(GTK_TREE_MODEL(playlist_store), &#38;playlist_iter, 0, &#38;uri, -1);
        
    prefix = g_string_append(prefix, uri);
    uri = prefix-&#62;str;

    if(uri != NULL)
    {
        printf("Play %s\n", uri);

        loop = g_main_loop_new(NULL, FALSE);
        pipeline = gst_element_factory_make("playbin", "player");

        g_object_set(G_OBJECT(pipeline), "uri", uri, NULL);

        GstBus *bus;
        bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));
        gst_bus_add_watch(bus, bus_call, NULL);
        gst_object_unref(bus);

        gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_PLAYING);    
        g_main_loop_run(loop);
    }

    g_string_free(prefix, TRUE);
}
</description>
		<content:encoded><![CDATA[<p>Test:</p>
<p>void<br />
player_play(void)<br />
{<br />
    gchar *uri = NULL;<br />
    GString *prefix = g_string_new(&#8221;file://&#8221;);</p>
<p>    gtk_tree_model_get(GTK_TREE_MODEL(playlist_store), &amp;playlist_iter, 0, &amp;uri, -1);</p>
<p>    prefix = g_string_append(prefix, uri);<br />
    uri = prefix-&gt;str;</p>
<p>    if(uri != NULL)<br />
    {<br />
        printf(&#8221;Play %s\n&#8221;, uri);</p>
<p>        loop = g_main_loop_new(NULL, FALSE);<br />
        pipeline = gst_element_factory_make(&#8221;playbin&#8221;, &#8220;player&#8221;);</p>
<p>        g_object_set(G_OBJECT(pipeline), &#8220;uri&#8221;, uri, NULL);</p>
<p>        GstBus *bus;<br />
        bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));<br />
        gst_bus_add_watch(bus, bus_call, NULL);<br />
        gst_object_unref(bus);</p>
<p>        gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_PLAYING);<br />
        g_main_loop_run(loop);<br />
    }</p>
<p>    g_string_free(prefix, TRUE);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Luciano</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3564</link>
		<dc:creator>Luciano</dc:creator>
		<pubDate>Thu, 24 Jul 2008 17:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3564</guid>
		<description>con comilla o sin comillas es lo mismo :P
De ninguna forma aparecen</description>
		<content:encoded><![CDATA[<p>con comilla o sin comillas es lo mismo <img src='http://picandocodigo.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
De ninguna forma aparecen</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Luciano</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3563</link>
		<dc:creator>Luciano</dc:creator>
		<pubDate>Thu, 24 Jul 2008 17:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3563</guid>
		<description>Ahora que veo
Los tags ""
Si los pongo sin comillas no aparecen</description>
		<content:encoded><![CDATA[<p>Ahora que veo<br />
Los tags &#8220;&#8221;<br />
Si los pongo sin comillas no aparecen</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Luciano</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3562</link>
		<dc:creator>Luciano</dc:creator>
		<pubDate>Thu, 24 Jul 2008 17:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3562</guid>
		<description>Fernando, en mi post "en blanco" hay codigo adetnro, codigo en php.
un simple echo
Obviamente los tagos de </description>
		<content:encoded><![CDATA[<p>Fernando, en mi post &#8220;en blanco&#8221; hay codigo adetnro, codigo en php.<br />
un simple echo<br />
Obviamente los tagos de</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: fernando</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3561</link>
		<dc:creator>fernando</dc:creator>
		<pubDate>Thu, 24 Jul 2008 17:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3561</guid>
		<description>Mmmmmmmmmh... Aparentemente hay gente que está escribiendo los tags, ¿pero no escribe código adentro? Confirmenme si es así, o hay algún error. Cuando fui a editar sus comentarios, tenían los tags, pero nada de código adentro.

Bueno, un hack a la vez dicen. Veremos cómo hacemos con la vista previa...
Al desarrollador original le gustó mi código, así que va a estar en la siguiente versión de WP-Syntax :D

Ya comentaré novedades...</description>
		<content:encoded><![CDATA[<p>Mmmmmmmmmh&#8230; Aparentemente hay gente que está escribiendo los tags, ¿pero no escribe código adentro? Confirmenme si es así, o hay algún error. Cuando fui a editar sus comentarios, tenían los tags, pero nada de código adentro.</p>
<p>Bueno, un hack a la vez dicen. Veremos cómo hacemos con la vista previa&#8230;<br />
Al desarrollador original le gustó mi código, así que va a estar en la siguiente versión de WP-Syntax <img src='http://picandocodigo.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Ya comentaré novedades&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Pablo</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3559</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Thu, 24 Jul 2008 16:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3559</guid>
		<description>Yo uso el plugin y antes del tag pre uso el code, así especifico, pero me gustó la idea del hack para usar directamente code.</description>
		<content:encoded><![CDATA[<p>Yo uso el plugin y antes del tag pre uso el code, así especifico, pero me gustó la idea del hack para usar directamente code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Imzyos</title>
		<link>http://picandocodigo.net/2008/07/wp-syntax-hackeado-como-mostrar-codigo-fuente-en-los-comentarios1/#comment-3558</link>
		<dc:creator>Imzyos</dc:creator>
		<pubDate>Thu, 24 Jul 2008 16:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://picandocodigo.net/?p=971#comment-3558</guid>
		<description>&lt;code lang="php"&gt;
echo 'que bien ','yo espero ', 'tu plugin';
&lt;/code&gt;

Como idea, sería interesante que se mostrara el resaltado en la vista previa del comentario, pero creo que va a ser complicado, excelente trabajo fernando</description>
		<content:encoded><![CDATA[<p><code lang="php"><br />
echo 'que bien ','yo espero ', 'tu plugin';<br />
</code></p>
<p>Como idea, sería interesante que se mostrara el resaltado en la vista previa del comentario, pero creo que va a ser complicado, excelente trabajo fernando</p>
]]></content:encoded>
	</item>
</channel>
</rss>
