<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>2WebFacil &#187; javascript</title>
	<atom:link href="http://2webfacil.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://2webfacil.com</link>
	<description>Tips, tutoriales, ejemplos y descargas para personalizar tu web</description>
	<lastBuildDate>Wed, 21 Jul 2010 04:59:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Crear botón &#8220;Follow Me&#8221; en Twitter</title>
		<link>http://2webfacil.com/crear-boton-follow-me-en-twitter/</link>
		<comments>http://2webfacil.com/crear-boton-follow-me-en-twitter/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 04:00:25 +0000</pubDate>
		<dc:creator>2webfacil</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Herramientas]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[badge]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[boton]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://2webfacil.com/?p=347</guid>
		<description><![CDATA[<p>Promocionar nuestra es cuenta de <em>Twitter</em> es una tarea importante para incrementar el numero de lectores y presencia de nuestra web o marca en Internet. <a href="http://www.go2web20.net/twitterFollowBadge/">Twitter &#8220;Follow&#8221; Badge</a> es una servicio que te permitirá crear rápidamente un botón flotante con el enlace a tu cuenta de Twitter.</p>
<p><a href="http://www.go2web20.net/twitterFollowBadge/"></a></p>
<p><strong>Como crear tu botón &#8220;Follow Me&#8221;</strong><br />
El primer paso es acceder al servicio en <a href="http://www.go2web20.net/twitterFollowBadge/">Twitter &#8220;Follow&#8221;</a>&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Promocionar nuestra es cuenta de <em>Twitter</em> es una tarea importante para incrementar el numero de lectores y presencia de nuestra web o marca en Internet. <a href="http://www.go2web20.net/twitterFollowBadge/">Twitter &#8220;Follow&#8221; Badge</a> es una servicio que te permitirá crear rápidamente un botón flotante con el enlace a tu cuenta de Twitter.</p>
<p><a href="http://www.go2web20.net/twitterFollowBadge/"><img src="http://2webfacil.com/wp-content/uploads/2010/04/twitter-follow-badge.jpg" alt="" title="twitter-follow-badge" width="500" height="260" /></a></p>
<p><strong>Como crear tu botón &#8220;Follow Me&#8221;</strong><br />
El primer paso es acceder al servicio en <a href="http://www.go2web20.net/twitterFollowBadge/">Twitter &#8220;Follow&#8221; Badge</a> en donde puedes configurar los siguientes parámetros.</p>
<ul>
<li><strong>Twitter account:</strong> el nombre de tu cuenta de Twitter.</li>
<li><strong>Label:</strong> es el texto que aparecerá en el botón.</li>
<li><strong>Color:</strong> es el color de fondo del botón.</li>
<li><strong>Side:</strong> puedes elegir si el botón se muestra a la derecha o izquierda.</li>
<li><strong>From top:</strong> es la separación de la parte superior.</li>
</ul>
<p>Luego de configurar estos parámetros hacen click en el botón <em>&#8220;Update Code&#8221;</em> el cual generará un codigo Javascript de la siguiente forma:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'http://files.go2web20.net/twitterbadge/1.0/badge.js'</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'text/javascript'</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'text/javascript'</span> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'utf-8'</span>&gt;</span><span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">tfb.account = '2webfacil';</span>
<span style="color: #808080; font-style: italic;">tfb.label = 'follow-us';</span>
<span style="color: #808080; font-style: italic;">tfb.color = '#35ccff';</span>
<span style="color: #808080; font-style: italic;">tfb.side = 'r';</span>
<span style="color: #808080; font-style: italic;">tfb.top = 136;</span>
<span style="color: #808080; font-style: italic;">tfb.showbadge();</span>
<span style="color: #808080; font-style: italic;">--&gt;</span><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<p>Esto código debes colocarlo en el código fuente de tu página o blog, debes colocarlo antes de la etiqueta <em>&lt;/body&gt;</em>.</p>

	Tags: <a href="http://2webfacil.com/tag/badge/" title="badge" rel="tag">badge</a>, <a href="http://2webfacil.com/tag/blog/" title="blog" rel="tag">blog</a>, <a href="http://2webfacil.com/tag/boton/" title="boton" rel="tag">boton</a>, <a href="http://2webfacil.com/tag/html/" title="HTML" rel="tag">HTML</a>, <a href="http://2webfacil.com/tag/javascript/" title="javascript" rel="tag">javascript</a>, <a href="http://2webfacil.com/tag/twitter/" title="Twitter" rel="tag">Twitter</a><br />
]]></content:encoded>
			<wfw:commentRss>http://2webfacil.com/crear-boton-follow-me-en-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AddThis: Marcadores sociales en tu Web</title>
		<link>http://2webfacil.com/addthis-marcadores-sociales-en-tu-web/</link>
		<comments>http://2webfacil.com/addthis-marcadores-sociales-en-tu-web/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 01:50:56 +0000</pubDate>
		<dc:creator>2webfacil</dc:creator>
				<category><![CDATA[Blogger]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Herramientas]]></category>
		<category><![CDATA[addthis]]></category>
		<category><![CDATA[compartir]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://2webfacil.com/?p=305</guid>
		<description><![CDATA[<p>Un punto importante al momento de promover una web es el uso de las redes sociales, para ello se ofrece a los visitantes facilidades para que puedan compartir un determinado recurso de nuestro web en diferentes sitios como Facebook, Twitter, Digg, Delicious, etc.</p>
<p style="text-align:center"></p>
<p><strong>AddThis</strong><br />
<a href="http://www.addthis.com/">AddThis</a> es una librería Javascript que permite agregar fácilmente los botones para compartir contenido en diferentes sitios. Se puede&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Un punto importante al momento de promover una web es el uso de las redes sociales, para ello se ofrece a los visitantes facilidades para que puedan compartir un determinado recurso de nuestro web en diferentes sitios como Facebook, Twitter, Digg, Delicious, etc.</p>
<p style="text-align:center"><img src="http://2webfacil.com/wp-content/uploads/2009/11/addthis.gif" alt="addthis" title="addthis" width="104" height="23" /></p>
<p><strong>AddThis</strong><br />
<a href="http://www.addthis.com/">AddThis</a> es una librería Javascript que permite agregar fácilmente los botones para compartir contenido en diferentes sitios. Se puede personalizar y soporta hasta 50 idiomas y soporta mas de 150 servicios como Twitter, Facebook, MySpace entre otros.</p>
<p style="text-align:center"><img src="http://2webfacil.com/wp-content/uploads/2009/11/addthis-demo.gif" alt="addthis-demo" title="addthis-demo" width="234" height="195"  /></p>
<p><strong>Como utilizar AddThis</strong><br />
El uso de AddThis es sencillo para ello accedemos a <a href="http://addthis.com">http://addthis.com</a> en donde seleccionamos que tipo de página tenemos (Blogger, WordPress, MySpace o un Web normal) luego el tipo de botón a utilizar, opcionalmente puedes seleccionar una opción para obtener estadísticas de las visitas para lo cual hay que registrarse y finalmente generamos nuestro botón.</p>
<p><strong>AddThis en tu Website</strong><br />
Si seleccionamos website el código generado será de la siguiente forma, el cual debes colocar en cada página donde desees agregar la opción para compartir.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!-- AddThis Button BEGIN --&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;addthis_button&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.addthis.com/bookmark.php?v=250&amp;amp;pub=xa-4aff590b0be123da&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://s7.addthis.com/static/btn/v2/lg-share-en.gif&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;125&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;16&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Bookmark and Share&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;border:0&quot;</span><span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4aff590b0be123da&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!-- AddThis Button END --&gt;</span></pre></td></tr></table></div>

<p><strong>AddThis en Blogger</strong><br />
Si utilizas Blogger puedes agregarlo rápidamente a tu sidebar con la opción <em>Install to Sidebar</em> que agregará el código necesario automáticamente. Ahora si deseas agregar la opción en cada post debes editar tu plantilla y agregar el código generado justo después de la etiqueta <em>&gt;div class=&#8217;post-footer&#8217;&lt;</em></p>
<p style="text-align:center"><img src="http://2webfacil.com/wp-content/uploads/2009/11/blogger_thumb_3.png" alt="blogger_thumb_3" title="blogger_thumb_3" width="380" height="200" /> </p>
<p>Guardas tu plantilla y ya tienes instalado esta opción en tu blog. Puedes el ejemplo funcionando en nuestro blog de prueba en: <a href="http://2webfacil.blogspot.com">http://2webfacil.blogspot.com</a></p>

	Tags: <a href="http://2webfacil.com/tag/addthis/" title="addthis" rel="tag">addthis</a>, <a href="http://2webfacil.com/tag/blogger/" title="Blogger" rel="tag">Blogger</a>, <a href="http://2webfacil.com/tag/compartir/" title="compartir" rel="tag">compartir</a>, <a href="http://2webfacil.com/tag/facebook/" title="Facebook" rel="tag">Facebook</a>, <a href="http://2webfacil.com/tag/javascript/" title="javascript" rel="tag">javascript</a>, <a href="http://2webfacil.com/tag/twitter/" title="Twitter" rel="tag">Twitter</a><br />
]]></content:encoded>
			<wfw:commentRss>http://2webfacil.com/addthis-marcadores-sociales-en-tu-web/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Agregar un traductor automático a tu Web</title>
		<link>http://2webfacil.com/agregar-un-traductor-automatico-en-tu-web/</link>
		<comments>http://2webfacil.com/agregar-un-traductor-automatico-en-tu-web/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 22:27:25 +0000</pubDate>
		<dc:creator>2webfacil</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Herramientas]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[traductor]]></category>

		<guid isPermaLink="false">http://2webfacil.com/?p=293</guid>
		<description><![CDATA[<p>Si deseas tener mayor audiencia en tu web o blog es necesario ofrecer el contenido en múltiples idiomas, pero este proceso de crear el contenido en varios idiomas es una tarea titanica, es por ello que Google nos ofrece una herramienta fácil de utilizar para agregar la opción de traducir nuestro web automáticamente.</p>
<strong>Traductor Automático</strong>
<p>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'es'
  }, 'google_translate_element');
}&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Si deseas tener mayor audiencia en tu web o blog es necesario ofrecer el contenido en múltiples idiomas, pero este proceso de crear el contenido en varios idiomas es una tarea titanica, es por ello que Google nos ofrece una herramienta fácil de utilizar para agregar la opción de traducir nuestro web automáticamente.</p>
<div id="google_translate_element" style="text-align:center;"><strong>Traductor Automático</strong></div>
<p><script>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'es'
  }, 'google_translate_element');
}
</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script></p>
<p><strong>Agregando la Traducción Automática</strong><br />
El servicio Google Traductor  ofrece una herramienta para hacer la traducción automática en <a href="http://translate.google.com/translate_tools">Make your website instantly available in other languages</a>. Para ello lo que tenemos que hacer es primero seleccionar el idioma original de nuestro web y luego de ello se generará un código Javascript que tenemos que colocar en nuestro web.</p>
<p style="text-align:center"><img src="http://2webfacil.com/wp-content/uploads/2009/10/google-translate.gif" alt="google-translate" title="google-translate" width="500" height="259" /></p>
<p>Ahora si deseamos podemos agregarle un mensaje personalizado antes de mostrar la opción para traducir podemos agregar el texto dentro del <em>div</em>, con lo que tendríamos el siguiente código:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;google_translate_element&quot;</span>&gt;</span>Traductor Automático<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'es'
  }, 'google_translate_element');
}
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<p>Con lo cual obtenemos la opción para traducir rápidamente nuestro web, además de ello se muestra en la parte superior una barra con la opción para traducir el web.  Sencillo  y rápido es la implementación y nos ayudará a brindar acceso a mas personas al contenido de nuestro web. A partir de ahora el idioma no será un impedimento para que los usuarios puedan entrar a tu web.</p>

	Tags: <a href="http://2webfacil.com/tag/google/" title="Google" rel="tag">Google</a>, <a href="http://2webfacil.com/tag/javascript/" title="javascript" rel="tag">javascript</a>, <a href="http://2webfacil.com/tag/traductor/" title="traductor" rel="tag">traductor</a><br />
]]></content:encoded>
			<wfw:commentRss>http://2webfacil.com/agregar-un-traductor-automatico-en-tu-web/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Publicar Código fuente en Blogger</title>
		<link>http://2webfacil.com/publicar-codigo-fuente-en-blogger/</link>
		<comments>http://2webfacil.com/publicar-codigo-fuente-en-blogger/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 22:35:33 +0000</pubDate>
		<dc:creator>2webfacil</dc:creator>
				<category><![CDATA[Blogger]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[codigo fuente]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://2webfacil.com/?p=269</guid>
		<description><![CDATA[<p>Para los que deseamos compartir información de como personalizar webs es muy importante publicar código fuente donde se resalten con colores la sintaxis para poder entenderlo rápidamente. Veamos como publicar código fuente en <em>Blogger</em>.</p>
<p style="text-align:center"><a href="http://2webfacil.blogspot.com/2009/07/codigo-fuente-en-blogger.html"></a></p>
<p><strong>SyntaxHighlighter 2.0</strong><br />
<a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">SyntaxHighlighter</a> es un script creado por <em>Alex Gorbatchev</em> para resaltar código fuente en páginas HTML hecho completamente en Javascript por lo cual la solución ideal para integrarlo&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Para los que deseamos compartir información de como personalizar webs es muy importante publicar código fuente donde se resalten con colores la sintaxis para poder entenderlo rápidamente. Veamos como publicar código fuente en <em>Blogger</em>.</p>
<p style="text-align:center"><a href="http://2webfacil.blogspot.com/2009/07/codigo-fuente-en-blogger.html"><img src="http://2webfacil.com/wp-content/uploads/2009/07/codigo-fuente-blogger.gif" alt="codigo-fuente-blogger" title="codigo-fuente-blogger" width="467" height="97" /></a></p>
<p><strong>SyntaxHighlighter 2.0</strong><br />
<a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">SyntaxHighlighter</a> es un script creado por <em>Alex Gorbatchev</em> para resaltar código fuente en páginas HTML hecho completamente en Javascript por lo cual la solución ideal para integrarlo con Blogger.</p>
<p><strong>Instalando SyntaxHighlighter</strong><br />
Normalmente se debe alojar este script en nuestros servidores, pero como Blogger no permite subir archivos .js, utilizaremos la versión hosteada que nos brinda <em>SyntaxHighlighter</em>. Entonces lo primero es incluir la librería en nuestro template, para ello editamos nuestro template y colocamos el siguiente código justo antes de la etiqueta <em>&lt;head&gt;</em>.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;'text/javascript'&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;'text/javascript'&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;'text/javascript'&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p>Donde las dos primeras líneas incluyen las estilos y las dos siguientes los scripts para interpretar el código fuente. En mi caso he incluido la librería <strong>shBrushXml.js</strong> pues yo deseo publicar solo HTML. Pueden agregar otros lenguajes con solo agregar mas scripts, para una lista detallada de los scripts que puedes incluir pueden leer <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter:Brushes">SyntaxHighlighter/Brushes</a>.</p>
<p><strong>Publicando Código Fuente</strong><br />
Ahora que ya tenemos instalado nuesro script, el siguiente paso es publicar código fuente, para ello debemos colocar el código que deseamos publicar entre los tags &lt;pre&gt; pero además debemos indicar que tipo de código estamos mostrando esto lo hacemos de la forma:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">pre</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;brush: xml&quot;</span>&gt;</span>
// codigo fuente
<span style="color: #009900;">&lt; <span style="color: #66cc66;">/</span>pre&gt;</span></pre></div></div>

<p>Nuevamente en mi caso utilizo XML para indicar que deseo publicar HTML. Entonces si por ejemplo deseamos publicar parte de un formulario en html, podriamos hacerlo de la siguiente forma:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">pre</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;brush: xml&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span>&gt;</span>
   Nombre: <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nombre&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nombre&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
   Email: <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;btsend&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Enviar&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span>
<span style="color: #009900;">&lt; <span style="color: #66cc66;">/</span>pre&gt;</span></pre></div></div>

<p><strong>NOTA</strong><br />
Hay que tener en cuenta que para evitar errores de HTML al momento de publicar el código fuente debemos cambiar los caracteres &lt; y &gt; por sus equivalentes en HTML:</p>
<ul>
<li><strong>&lt;</strong> por su equivalente <em>&amp;lt;</em></li>
<li><strong>&gt;</strong> por su equivalente <em>&amp;gt;</em></li>
</ul>
<p>Además de ello pueden ver el ejemplo funcionando en nuestro blog de prueba en Blogger: <a href="http://2webfacil.blogspot.com/2009/07/codigo-fuente-en-blogger.html">http://2webfacil.blogspot.com/2009/07/codigo-fuente-en-blogger.html</a></p>

	Tags: <a href="http://2webfacil.com/tag/blog/" title="blog" rel="tag">blog</a>, <a href="http://2webfacil.com/tag/blogger/" title="Blogger" rel="tag">Blogger</a>, <a href="http://2webfacil.com/tag/codigo-fuente/" title="codigo fuente" rel="tag">codigo fuente</a>, <a href="http://2webfacil.com/tag/html/" title="HTML" rel="tag">HTML</a>, <a href="http://2webfacil.com/tag/javascript/" title="javascript" rel="tag">javascript</a>, <a href="http://2webfacil.com/tag/seo/" title="SEO" rel="tag">SEO</a><br />
]]></content:encoded>
			<wfw:commentRss>http://2webfacil.com/publicar-codigo-fuente-en-blogger/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
