{"id":852,"date":"2017-11-05T22:27:05","date_gmt":"2017-11-06T03:27:05","guid":{"rendered":"https:\/\/blog.index.pe\/?p=852"},"modified":"2022-02-14T01:59:35","modified_gmt":"2022-02-14T06:59:35","slug":"como-anadir-codigo-en-tus-post-wordpress","status":"publish","type":"post","link":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/","title":{"rendered":"How to Add Code in your WordPress Post"},"content":{"rendered":"<p><script async=\"\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<!-- Whois responsive --><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block;\" data-ad-client=\"ca-pub-7016851332009441\" data-ad-slot=\"3357279107\" data-ad-format=\"auto\"><\/ins><br \/>\n<script><br \/>\n(adsbygoogle = window.adsbygoogle || []).push({});<br \/>\n<\/script><br \/>\nSeguramente trataste varias veces de\u00a0<strong>incluir c\u00f3digo en tus posts WordPress<\/strong>\u00a0sin exito, aqu\u00ed tenemos la soluci\u00f3n definitiva muy sencillo y sin fallos para no morir en el intento.<\/p>\n<p>Para conseguirlo nos vamos ayudar del plugin\u00a0<a href=\"https:\/\/es.wordpress.org\/plugins\/my-syntax-highlighter\/\" target=\"_blank\" rel=\"noopener\"><strong>My Syntax Highlighter<\/strong><\/a>\u00a0el cual nos permitir\u00e1, insertar\u00a0<strong>todo tipo de c\u00f3digos<\/strong>\u00a0en nuestras entradas pero sin que se ejecuten; en su lugar se mostrar\u00e1n de un modo visualmente muy atractivo, dentro de una caja de c\u00f3digo y con la opci\u00f3n de mostrar el \u201c<em>texto plano<\/em>\u201d por si nuestro lector quiere copiar el c\u00f3digo original.<\/p>\n<h3>Instalarlo es bien sencillo \u2026<\/h3>\n<ol>\n<li><strong>Buscar, instalar y activar el plugin:<\/strong><br \/>\n<a href=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codigo-post.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-853 size-large alignnone\" src=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codigo-post-1024x516.png\" alt=\"\" width=\"680\" height=\"343\" srcset=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codigo-post-1024x516.png 1024w, https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codigo-post-300x151.png 300w, https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codigo-post-768x387.png 768w, https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codigo-post-1536x773.png 1536w, https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codigo-post.png 1698w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/li>\n<li><strong>Configura las opciones disponibles en tu panel de administraci\u00f3n:<\/strong><br \/>\n<a href=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/code-config.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-854 size-large\" src=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/code-config-1024x516.png\" alt=\"\" width=\"680\" height=\"343\" srcset=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/code-config-1024x516.png 1024w, https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/code-config-300x151.png 300w, https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/code-config-768x387.png 768w, https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/code-config-1536x773.png 1536w, https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/code-config.png 1698w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/li>\n<\/ol>\n<p>Una vez activo el plugin, al postear nuevas entradas en\u00a0tu blog debes a\u00f1adir las etiquetas del lenguaje de programaci\u00f3n correspondiente, la cual esta indicado en el manual de uso del plugin:\u00a0<a href=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codes.png\" rel=\"lightbox-2\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-861 size-full\" src=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codes.png\" alt=\"\" width=\"869\" height=\"32\" srcset=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codes.png 869w, https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codes-300x11.png 300w, https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/codes-768x28.png 768w\" sizes=\"auto, (max-width: 869px) 100vw, 869px\" \/><\/a><\/p>\n<p>Apartir de ahora ya puedes insertar tus c\u00f3digo en tus posts usan la etiqueta [ code ], aqu\u00ed tienes una muestra:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>[ code]\n\n&lt;!doctype html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;meta charset=\"utf-8\"&gt;\n&lt;title&gt;Untitled Document&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;\n\n[\/code]<\/code><\/pre>\n<\/div>\n<p><strong>ACTUALIZADO 2022:<\/strong> Recomendamos el plugin <a href=\"https:\/\/es.wordpress.org\/plugins\/highlighting-code-block\/\" target=\"_blank\" rel=\"nofollow noopener\"><span>Highlighting Code Block<\/span><\/a>, <span>Es compatible con \u00abEditor de bloques\u00bb como con el \u00abEditor cl\u00e1sico\u00bb. <\/span><span>(Sin embargo, recomendamos usarlo en el \u00abEditor de bloques\u00bb.)<\/span><br \/>\n<script async=\"\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<script><br \/>\n  (adsbygoogle = window.adsbygoogle || []).push({<br \/>\n    google_ad_client: \"ca-pub-7016851332009441\",<br \/>\n    enable_page_level_ads: true<br \/>\n  });<br \/>\n<\/script><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_852\" class=\"pvc_stats all  \" data-element-id=\"852\" style=\"\"><i class=\"pvc-stats-icon small\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/blog.index.pe\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-reaction-buttons\" ><\/div>","protected":false},"excerpt":{"rendered":"<p>Surely you tried several times to include code in your WordPress posts without success, here we have the definitive solution, very simple and without errors so as not to die trying. To achieve this we are going to use the My Syntax Highlighter plugin which will allow us to insert all types of codes in our entries but without them being executed; Instead they will be displayed in a very visually attractive way, inside a code box and with the option of showing the \u201cplain text\u201d in case our reader wants to copy the original code. Installing it is very simple\u2026 Search, install and activate the plugin: Configure the available options<\/p>","protected":false},"author":1,"featured_media":844,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[102,173],"tags":[171,174,169],"class_list":["post-852","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial","category-wordpress","tag-html","tag-syntax-highlighter","tag-wordpress"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Seguramente trataste varias veces de incluir c\u00f3digo en tus posts WordPress sin exito, aqu\u00ed tenemos la soluci\u00f3n definitiva muy sencillo y sin fallos para no morir en el intento. Para conseguirlo nos vamos ayudar del plugin My Syntax Highlighter el cual nos permitir\u00e1, insertar todo tipo de c\u00f3digos en nuestras entradas pero sin que se ejecuten; en su lugar se mostrar\u00e1n\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Index.pe\"\/>\n\t<meta name=\"google-site-verification\" content=\"R0FyKtH7AO0qfbQs9OR3qfgr1MYDMagx3MsqEWaTZlE\" \/>\n\t<meta name=\"keywords\" content=\"html,syntax highlighter,wordpress,tutorial\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Blog de index.pe - Actualidad, Tecnologia, Redes, Internet, Webmaster\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Como A\u00f1adir C\u00f3digo en tus Post WordPress Blog de Index.pe\" \/>\n\t\t<meta property=\"og:description\" content=\"Seguramente trataste varias veces de incluir c\u00f3digo en tus posts WordPress sin exito, aqu\u00ed tenemos la soluci\u00f3n definitiva muy sencillo y sin fallos para no morir en el intento. Para conseguirlo nos vamos ayudar del plugin My Syntax Highlighter el cual nos permitir\u00e1, insertar todo tipo de c\u00f3digos en nuestras entradas pero sin que se ejecuten; en su lugar se mostrar\u00e1n\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/WordPress-Plugins.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/WordPress-Plugins.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"650\" \/>\n\t\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-11-06T03:27:05+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-02-14T06:59:35+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/index.pe\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Como A\u00f1adir C\u00f3digo en tus Post WordPress Blog de Index.pe\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Seguramente trataste varias veces de incluir c\u00f3digo en tus posts WordPress sin exito, aqu\u00ed tenemos la soluci\u00f3n definitiva muy sencillo y sin fallos para no morir en el intento. Para conseguirlo nos vamos ayudar del plugin My Syntax Highlighter el cual nos permitir\u00e1, insertar todo tipo de c\u00f3digos en nuestras entradas pero sin que se ejecuten; en su lugar se mostrar\u00e1n\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/WordPress-Plugins.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#article\",\"name\":\"Como A\\u00f1adir C\\u00f3digo en tus Post WordPress Blog de Index.pe\",\"headline\":\"Como A\\u00f1adir C\\u00f3digo en tus Post WordPress\",\"author\":{\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/author\\\/wilder\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/blog.index.pe\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/WordPress-Plugins.png\",\"width\":650,\"height\":300},\"datePublished\":\"2017-11-05T22:27:05-05:00\",\"dateModified\":\"2022-02-14T01:59:35-05:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#webpage\"},\"articleSection\":\"Tutorial, WordPress, html, Syntax Highlighter, WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en#listItem\",\"position\":1,\"name\":\"Inicio\",\"item\":\"https:\\\/\\\/blog.index.pe\\\/en\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/category\\\/tutorial\\\/#listItem\",\"name\":\"Tutorial\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/category\\\/tutorial\\\/#listItem\",\"position\":2,\"name\":\"Tutorial\",\"item\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/category\\\/tutorial\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#listItem\",\"name\":\"Como A\\u00f1adir C\\u00f3digo en tus Post WordPress\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en#listItem\",\"name\":\"Inicio\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#listItem\",\"position\":3,\"name\":\"Como A\\u00f1adir C\\u00f3digo en tus Post WordPress\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/category\\\/tutorial\\\/#listItem\",\"name\":\"Tutorial\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/#organization\",\"name\":\"Blog de Index.pe\",\"description\":\"El Blog de Index.pe ofrece art\\u00edculos detallados sobre creaci\\u00f3n y gesti\\u00f3n de p\\u00e1ginas web, dominios, hosting, marketing online, WordPress, SEO, SSL y Actualidad\",\"url\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/\",\"telephone\":\"+51943643097\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/blog.index.pe\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/blog-index.png\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#organizationLogo\",\"width\":400,\"height\":400,\"caption\":\"Logo Blog de Index.pe\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/author\\\/wilder\\\/#author\",\"url\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/author\\\/wilder\\\/\",\"name\":\"Index.pe\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/144b5b7142fdf15a32e0451c3f444446e2a7e0c3c2f70ea8fca0208037d9033d?s=96&d=wavatar&r=g\",\"width\":96,\"height\":96,\"caption\":\"Index.pe\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#webpage\",\"url\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/\",\"name\":\"Como A\\u00f1adir C\\u00f3digo en tus Post WordPress Blog de Index.pe\",\"description\":\"Seguramente trataste varias veces de incluir c\\u00f3digo en tus posts WordPress sin exito, aqu\\u00ed tenemos la soluci\\u00f3n definitiva muy sencillo y sin fallos para no morir en el intento. Para conseguirlo nos vamos ayudar del plugin My Syntax Highlighter el cual nos permitir\\u00e1, insertar todo tipo de c\\u00f3digos en nuestras entradas pero sin que se ejecuten; en su lugar se mostrar\\u00e1n\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/author\\\/wilder\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/author\\\/wilder\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/blog.index.pe\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/WordPress-Plugins.png\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#mainImage\",\"width\":650,\"height\":300},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/como-anadir-codigo-en-tus-post-wordpress\\\/#mainImage\"},\"datePublished\":\"2017-11-05T22:27:05-05:00\",\"dateModified\":\"2022-02-14T01:59:35-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/\",\"name\":\"Blog de Index.pe\",\"description\":\"El Blog de Index.pe ofrece art\\u00edculos detallados sobre creaci\\u00f3n y gesti\\u00f3n de p\\u00e1ginas web, dominios, hosting, marketing online, WordPress, SEO, SSL y Actualidad\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.index.pe\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Como A\u00f1adir C\u00f3digo en tus Post WordPress Blog de Index.pe","description":"Seguramente trataste varias veces de incluir c\u00f3digo en tus posts WordPress sin exito, aqu\u00ed tenemos la soluci\u00f3n definitiva muy sencillo y sin fallos para no morir en el intento. Para conseguirlo nos vamos ayudar del plugin My Syntax Highlighter el cual nos permitir\u00e1, insertar todo tipo de c\u00f3digos en nuestras entradas pero sin que se ejecuten; en su lugar se mostrar\u00e1n","canonical_url":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/","robots":"max-image-preview:large","keywords":"html,syntax highlighter,wordpress,tutorial","webmasterTools":{"google-site-verification":"R0FyKtH7AO0qfbQs9OR3qfgr1MYDMagx3MsqEWaTZlE","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#article","name":"Como A\u00f1adir C\u00f3digo en tus Post WordPress Blog de Index.pe","headline":"Como A\u00f1adir C\u00f3digo en tus Post WordPress","author":{"@id":"https:\/\/blog.index.pe\/en\/author\/wilder\/#author"},"publisher":{"@id":"https:\/\/blog.index.pe\/en\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/WordPress-Plugins.png","width":650,"height":300},"datePublished":"2017-11-05T22:27:05-05:00","dateModified":"2022-02-14T01:59:35-05:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#webpage"},"isPartOf":{"@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#webpage"},"articleSection":"Tutorial, WordPress, html, Syntax Highlighter, WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/blog.index.pe\/en#listItem","position":1,"name":"Inicio","item":"https:\/\/blog.index.pe\/en","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.index.pe\/en\/category\/tutorial\/#listItem","name":"Tutorial"}},{"@type":"ListItem","@id":"https:\/\/blog.index.pe\/en\/category\/tutorial\/#listItem","position":2,"name":"Tutorial","item":"https:\/\/blog.index.pe\/en\/category\/tutorial\/","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#listItem","name":"Como A\u00f1adir C\u00f3digo en tus Post WordPress"},"previousItem":{"@type":"ListItem","@id":"https:\/\/blog.index.pe\/en#listItem","name":"Inicio"}},{"@type":"ListItem","@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#listItem","position":3,"name":"Como A\u00f1adir C\u00f3digo en tus Post WordPress","previousItem":{"@type":"ListItem","@id":"https:\/\/blog.index.pe\/en\/category\/tutorial\/#listItem","name":"Tutorial"}}]},{"@type":"Organization","@id":"https:\/\/blog.index.pe\/en\/#organization","name":"Blog de Index.pe","description":"El Blog de Index.pe ofrece art\u00edculos detallados sobre creaci\u00f3n y gesti\u00f3n de p\u00e1ginas web, dominios, hosting, marketing online, WordPress, SEO, SSL y Actualidad","url":"https:\/\/blog.index.pe\/en\/","telephone":"+51943643097","logo":{"@type":"ImageObject","url":"https:\/\/blog.index.pe\/wp-content\/uploads\/2020\/03\/blog-index.png","@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#organizationLogo","width":400,"height":400,"caption":"Logo Blog de Index.pe"},"image":{"@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/blog.index.pe\/en\/author\/wilder\/#author","url":"https:\/\/blog.index.pe\/en\/author\/wilder\/","name":"Index.pe","image":{"@type":"ImageObject","@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/144b5b7142fdf15a32e0451c3f444446e2a7e0c3c2f70ea8fca0208037d9033d?s=96&d=wavatar&r=g","width":96,"height":96,"caption":"Index.pe"}},{"@type":"WebPage","@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#webpage","url":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/","name":"Como A\u00f1adir C\u00f3digo en tus Post WordPress Blog de Index.pe","description":"Seguramente trataste varias veces de incluir c\u00f3digo en tus posts WordPress sin exito, aqu\u00ed tenemos la soluci\u00f3n definitiva muy sencillo y sin fallos para no morir en el intento. Para conseguirlo nos vamos ayudar del plugin My Syntax Highlighter el cual nos permitir\u00e1, insertar todo tipo de c\u00f3digos en nuestras entradas pero sin que se ejecuten; en su lugar se mostrar\u00e1n","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/blog.index.pe\/en\/#website"},"breadcrumb":{"@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#breadcrumblist"},"author":{"@id":"https:\/\/blog.index.pe\/en\/author\/wilder\/#author"},"creator":{"@id":"https:\/\/blog.index.pe\/en\/author\/wilder\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/WordPress-Plugins.png","@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#mainImage","width":650,"height":300},"primaryImageOfPage":{"@id":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/#mainImage"},"datePublished":"2017-11-05T22:27:05-05:00","dateModified":"2022-02-14T01:59:35-05:00"},{"@type":"WebSite","@id":"https:\/\/blog.index.pe\/en\/#website","url":"https:\/\/blog.index.pe\/en\/","name":"Blog de Index.pe","description":"El Blog de Index.pe ofrece art\u00edculos detallados sobre creaci\u00f3n y gesti\u00f3n de p\u00e1ginas web, dominios, hosting, marketing online, WordPress, SEO, SSL y Actualidad","inLanguage":"en-US","publisher":{"@id":"https:\/\/blog.index.pe\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"Blog de index.pe - Actualidad, Tecnologia, Redes, Internet, Webmaster","og:type":"article","og:title":"Como A\u00f1adir C\u00f3digo en tus Post WordPress Blog de Index.pe","og:description":"Seguramente trataste varias veces de incluir c\u00f3digo en tus posts WordPress sin exito, aqu\u00ed tenemos la soluci\u00f3n definitiva muy sencillo y sin fallos para no morir en el intento. Para conseguirlo nos vamos ayudar del plugin My Syntax Highlighter el cual nos permitir\u00e1, insertar todo tipo de c\u00f3digos en nuestras entradas pero sin que se ejecuten; en su lugar se mostrar\u00e1n","og:url":"https:\/\/blog.index.pe\/en\/como-anadir-codigo-en-tus-post-wordpress\/","og:image":"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/WordPress-Plugins.png","og:image:secure_url":"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/WordPress-Plugins.png","og:image:width":650,"og:image:height":300,"article:published_time":"2017-11-06T03:27:05+00:00","article:modified_time":"2022-02-14T06:59:35+00:00","article:publisher":"https:\/\/www.facebook.com\/index.pe","twitter:card":"summary","twitter:title":"Como A\u00f1adir C\u00f3digo en tus Post WordPress Blog de Index.pe","twitter:description":"Seguramente trataste varias veces de incluir c\u00f3digo en tus posts WordPress sin exito, aqu\u00ed tenemos la soluci\u00f3n definitiva muy sencillo y sin fallos para no morir en el intento. Para conseguirlo nos vamos ayudar del plugin My Syntax Highlighter el cual nos permitir\u00e1, insertar todo tipo de c\u00f3digos en nuestras entradas pero sin que se ejecuten; en su lugar se mostrar\u00e1n","twitter:image":"https:\/\/blog.index.pe\/wp-content\/uploads\/2017\/11\/WordPress-Plugins.png"},"aioseo_meta_data":{"post_id":"852","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"aioseo-article-638f9e824896b","slug":"article","graphName":"Article","label":"Art\u00edculo","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-01-14 05:11:03","updated":"2025-07-22 06:06:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"seo_analyzer_scan_date":null},"a3_pvc":{"activated":true,"total_views":1621,"today_views":0},"_links":{"self":[{"href":"https:\/\/blog.index.pe\/en\/wp-json\/wp\/v2\/posts\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.index.pe\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.index.pe\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.index.pe\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.index.pe\/en\/wp-json\/wp\/v2\/comments?post=852"}],"version-history":[{"count":12,"href":"https:\/\/blog.index.pe\/en\/wp-json\/wp\/v2\/posts\/852\/revisions"}],"predecessor-version":[{"id":1383,"href":"https:\/\/blog.index.pe\/en\/wp-json\/wp\/v2\/posts\/852\/revisions\/1383"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.index.pe\/en\/wp-json\/wp\/v2\/media\/844"}],"wp:attachment":[{"href":"https:\/\/blog.index.pe\/en\/wp-json\/wp\/v2\/media?parent=852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.index.pe\/en\/wp-json\/wp\/v2\/categories?post=852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.index.pe\/en\/wp-json\/wp\/v2\/tags?post=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}