Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Soli

    (@allnull)

    You can use lang-html class in pre tag to specify the language.

    <pre class="prettyprint lang-html">
      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".
    </pre>
    Thread Starter rejohn

    (@rejohn)

    Hi Soli,

    Thanks for your reply.

    What i want to achieve is to set the default language to HTML so i don’t have to specify <pre class=”prettyprint lang-html”> everytime.

    Plugin Author Soli

    (@allnull)

    I am afraid Google Code Prettify has no such feature.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Prettyprint language’ is closed to new replies.