lunes, 3 de julio de 2017

Code Highlighter vs JavaScript code prettifier vs codeformatter

#http://blog.cartercole.com/2009/10/awesome-syntax-highlighting-made-easy.html #https://github.com/google/code-prettify http://sites.google.com/site/itswadesh/ codehighlighter



codigo normal:
...Your html-escaped code goes here...
php:
    echo "I like PHP";
html:
... 소스코드 ...
aqui un problema:

   AddDefaultCharset UTF-8
   
     # Apache 2.4
     
       Require ip 127.0.0.1
       Require ip ::1
       Require all granted
     
   
   
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1
     Allow from ::1
   


https://github.com/google/code-prettify prettyprint
class Voila {
public:
  // Voila
  static const string VOILA = "Voila";

  // will not interfere with embedded tags.
}
  The lang-* class specifies the language file extensions.
  File extensions supported by default include:
    "bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html", "java",
    "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh", "xhtml", "xml",
    "xsl".
otro error aca:

   AddDefaultCharset UTF-8
   
     # Apache 2.4
     
       Require ip 127.0.0.1
       Require ip ::1
       Require all granted
     
   
   
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1
     Allow from ::1
   


En resumen el unico gran problema de Code highlighter/prettifier es que las rutas dentro de tags las deja con comillas. a excepcion de codeformatter: http://codeformatter.blogspot.cl/
 <Directory /usr/share/phpMyAdmin/>  
   AddDefaultCharset UTF-8  
   <IfModule mod_authz_core.c>  
    # Apache 2.4  
    <RequireAny>  
     Require ip 127.0.0.1  
     Require ip ::1  
     Require all granted  
    </RequireAny>  
   </IfModule>  
   <IfModule !mod_authz_core.c>  
    # Apache 2.2  
    Order Deny,Allow  
    Deny from All  
    Allow from 127.0.0.1  
    Allow from ::1  
   </IfModule>  
 </Directory>  

No hay comentarios:

Publicar un comentario