Supports parallelism with Web Workers, if available.This means that if multiple code snippets have the same language, you can just define it once,in one of their common ancestors. In addition, the language is defined through the way recommended in the HTML5 draft: through a language-xxxx class. On its own for inline code, or inside a for blocks of code. Prism forces you to use the correct element for marking up code. Other highlighters encourage or even force you to use elements that are semantically wrong, Each language definition adds roughly 300-500 bytes. If you’re still not sold, you can view more examples or try it out for yourself. This page’s logo (SVG), highlighted with Prism: This page’s HTML, highlighted with Prism: This page’s CSS code, highlighted with Prism: ![]() ![]() The Prism source, highlighted with Prism (don’t you just love how meta this is?):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |