8

JavaScript source code highlighter - Prettify

 4 years ago
source link: https://www.devdungeon.com/content/javascript-source-code-highlighter-prettify
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

JavaScript source code highlighter - Prettify

Submitted by NanoDano on Thu, 10/18/2012 - 01:40

Google Code Prettify is great for turning <code> tags into nicely formatted HTML. I personally appreciate how it displays the line numbers, but they don't get included when you copy+paste. There are many themes available but my favorite is the google code. It treats word wrapping well with line numbers, shows each line number, and is styled nicely. The Drupal module allows you to integrate it easily to Drupal.

Drupal Pretiffy module: http://drupal.org/project/prettify

Prettify: http://code.google.com/p/google-code-prettify/

Prettify Themes Gallery: http://google-code-prettify.googlecode.com/svn/trunk/styles/index.html

Advertisement


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK