<?xml version="1.0"?>
     <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
     <channel>
      <link>http://www.neoplugins.davidesperalta.com/</link>
      <title>Neoplugins libres - Entrada "NeoGeshi 1.0" de la bitácora</title>
      <generator>Gesbit</generator>
      <description>Únicos plugins libres para Neobook</description>
      <atom:link href="http://www.neoplugins.davidesperalta.com/rss/" rel="self"
       type="application/rss+xml" />
    
      <item>
       <link>http://www.neoplugins.davidesperalta.com/neogeshi/</link>
       <guid>http://www.neoplugins.davidesperalta.com/neogeshi/</guid>
       <pubDate>Mon, 16 Jul 2007 11:46:51 +0200</pubDate>
       <title><![CDATA[ NeoGeshi 1.0 ]]></title>
       <description><![CDATA[<p>Para colorear el código fuente que se publique en este Weblog utilizo el plugin para <a title="WordPress.org" href="http://www.wordpress.org/">WordPress</a> de nombre <a title="WP-syntax en WordPress.org" href="http://wordpress.org/extend/plugins/wp-syntax/">WP-syntax</a> de <a title="Ryan McGeary Website" href="http://ryan.mcgeary.org/">Ryan McGeary</a>, y este a su vez se basa en la librería <a title="Geshi para PHP" href="http://qbnz.com/highlighter/">Geshi para PHP</a>.</p>
<p>Pues bien, Geshi soporta decenas de lenguajes de programación diferentes, por ejemplo, <a title="CodeGear Delphi" href="http://www.codegear.com/">Delphi</a>:</p><div class="gbhighlighcode"><div class="sourcecode"><pre class="delphi">  <span style="color: #000066;">WriteLn</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'¡Hola mundo!'</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>
<p>Pues bien, he preparado el Script PHP necesario para que Geshi soporte el lenguaje de <a href="http://www.neosoftware.com/">Neobook</a>, o sea, Neobook Scripts.</p>
<p class="center" style="font-size: 1.2em; font-weight: bold;"><a title="Descargar NeoGeshi" href="http://www.neoplugins.davidesperalta.com/archives/source/neogeshi.zip">Descarga NeoGeshi 1.0</a> - 27/3/2008</p>
<p>Se lo he enviado por correo al autor de Geshi por si tiene a bien incluirlo en la distribución de este fantástico software.</p>
<p>¿Cómo? ¿Quieres ver cómo se ve el código de Neobook pasado por Geshi? Dicho así... pero, verás, verás que no queda mal del todo, bueno, a ver qué te parece:</p><div class="gbhighlighcode"><div class="sourcecode"><pre class="neobook"><span style="color: blue;">SetVar</span> <span style="color: green;">&quot;</span><span style="color: red;">&#91;</span><span style="color: red;">Hash</span><span style="color: red;">&#93;</span><span style="color: green;">&quot;</span> <span style="color: green;">&quot;</span><span style="color: green;">&quot;</span>
<span style="color: blue;">DisableObject</span> <span style="color: green;">&quot;</span>btnCerrar<span style="color: green;">&quot;</span>
<span style="color: blue;">EnableObject</span> <span style="color: green;">&quot;</span>btnCancelar<span style="color: green;">&quot;</span>
&nbsp;
<span style="color: blue;">If</span> <span style="color: green;">&quot;</span><span style="color: red;">&#91;</span><span style="color: red;">Cadena</span><span style="color: red;">&#93;</span><span style="color: green;">&quot;</span> <span style="color: green;">&quot;</span>&lt;&gt;<span style="color: green;">&quot;</span> <span style="color: green;">&quot;</span><span style="color: green;">&quot;</span>
  <span style="color: blue;">If</span> <span style="color: green;">&quot;</span><span style="color: red;">&#91;</span><span style="color: red;">rgHash</span><span style="color: red;">&#93;</span><span style="color: green;">&quot;</span> <span style="color: green;">&quot;</span>=<span style="color: green;">&quot;</span> <span style="color: green;">&quot;</span>Calcular MD5<span style="color: green;">&quot;</span>
    <span style="color: blue; font-weight: bold;">npMD5Cadena</span> <span style="color: green;">&quot;</span><span style="color: red;">&#91;</span><span style="color: red;">Cadena</span><span style="color: red;">&#93;</span><span style="color: green;">&quot;</span>
  <span style="color: blue;">EndIf</span>
  <span style="color: blue;">If</span> <span style="color: green;">&quot;</span><span style="color: red;">&#91;</span><span style="color: red;">rgHash</span><span style="color: red;">&#93;</span><span style="color: green;">&quot;</span> <span style="color: green;">&quot;</span>=<span style="color: green;">&quot;</span> <span style="color: green;">&quot;</span>Calcular SHA1<span style="color: green;">&quot;</span>
    <span style="color: blue; font-weight: bold;">npSHA1Cadena</span> <span style="color: green;">&quot;</span><span style="color: red;">&#91;</span><span style="color: red;">Cadena</span><span style="color: red;">&#93;</span><span style="color: green;">&quot;</span>
  <span style="color: blue;">EndIf</span>
  <span style="color: blue;">SetVar</span> <span style="color: green;">&quot;</span><span style="color: red;">&#91;</span><span style="color: red;">Hash</span><span style="color: red;">&#93;</span><span style="color: green;">&quot;</span> <span style="color: green;">&quot;</span><span style="color: red;">&#91;</span><span style="color: red;">npResultadoAccion</span><span style="color: red;">&#93;</span><span style="color: green;">&quot;</span>
<span style="color: blue;">EndIf</span></pre></div></div>
<p>El Script PHP que he preparado reconoce prácticamente todas las acciones de Neobook, junto con todas las acciones de <a title="Todos mis NeoPlugins" href="http://www.neoplugins.davidesperalta.com/neoplugins/">mis NeoPlugins</a> (estas últimas las resalta en azul y negrita).</p>
<p>Tiene aún algunos "errores", pero, bueno, para publicar ciertos extractos de código fuente, para ilustrar este Weblog, por ejemplo, creo que de momento va a cumplir su cometido.</p>]]></description>
      </item>
      
      <item>
       <link>http://www.neoplugins.davidesperalta.com/neogeshi/#comment-56</link>
       <guid>http://www.neoplugins.davidesperalta.com/neogeshi/#comment-56</guid>
       <pubDate>Tue, 23 Oct 2007 19:24:55 +0200</pubDate>
       <title><![CDATA[ Comentario por "dec" ]]></title>
       <description><![CDATA[Bueno. NeoGeshi depende de <a href="http://qbnz.com/highlighter/" title="Sitio web de Geshi" rel="nofollow">Geshi</a>, únicamente, de hecho es como una especie de "plugin" que añade a Geshi el soporte para "reconocer" el lenguaje de Neobook.

¿Y cómo se usa Geshi? Pues, por ejemplo, por medio de algún plugin para WordPress. En <a href="http://www.neobookeros.com.ar/" title="Neobookeros.com.ar" rel="nofollow">Neobookeros</a> me consta que se hace así. Podrías intentar usar Geshi por separado, es decir, no como un plugin de WordPress, pero, la verdad, desconozco si WordPress.org ofrece la posibilidad de hacerlo.

Lo digo porque, según tú mismo dices, no se permiten plugins para Wordpress,... y tal vez tampoco puedas "meterte" en el código para tratar de usar Geshi por separado. La verdad es que no sé mucho de Wordpress.org y lo que ofrece y lo que no ofrece.]]></description>
      </item>
      
      <item>
       <link>http://www.neoplugins.davidesperalta.com/neogeshi/#comment-55</link>
       <guid>http://www.neoplugins.davidesperalta.com/neogeshi/#comment-55</guid>
       <pubDate>Wed, 12 Sep 2007 10:03:26 +0200</pubDate>
       <title><![CDATA[ Comentario por "dec" ]]></title>
       <description><![CDATA[Vale <strong>Palamar</strong>. Tengo por aquí un correo tuyo que responderé en cuanto tenga tiempo. Pero, ya te adelanto que el asunto estriba en instalar el plugin WP-Syntax en WordPress. Este plugin cuenta con archivos (Script PHP) para resaltar decenas de lenguajes de programación.

Y ahí es donde entra NeoGeshi. Este es un archivo (Script PHP) que se añade a los otros, de forma que el lenguaje/script de Neobook esté disponible para ser resaltado. Ni más, ni menos. :)

Es probable que en la respuesta a tu correo acompañe el plugin que menciono, ya con NeoGeshi incluido. Tú tendrías que instalar el plugin en el WordPress de Damaneo y eso sería todo... por lo menos para empezar.]]></description>
      </item>
      
     </channel>
    </rss>