PrettyPrint

JavaScript and CSS formatter/syntax highlighter
PrettyPrint is a Chrome extension that provides syntax highlighting and formatting for JavaScript and CSS code. It is based on Webkit syntax highlighter and utilizes jsbeautifier and cssbeautify for code formatting.
Manifest V2
By:
gildas
Users:
17,966+
Rating:
3.86
(100)
Version:
0.0.25 (Last updated: 2012-11-02)
Creation date:
2012-11-02
Permissions:
  • contextMenus
  • tabs
  • http://*/
  • https://*/
  • ftp://*/
Size:
57.98K
Full description:
See detailed description
Updated:
2 years ago

User reviews

(Comment updated Jan '23, this extension seems abandoned, see edits) Pros: - Highlighting looks good - You can change the indentation, I use two spaces Cons: - Clicking reset button is automatically saved, so if you click it accidentally you are screwed. - Does not convert url(/images/img.png) to a link, which would be handy - After prettifying the line numbering is completely useless, as it adds it separates lines. Notepad++ has a solution for this if you turn word wrapping on, this should be adopted. Update: 1. I found in some cases the script actually changes. For example the minified version of Selectize 0.15.2 works fine if copied into chrome JS console and ran directly. If you use pretty print and then copy the code, it gives an error. In that example the Pretty Print extension converts """ to """ which causes a syntax error. 2. The colors are completely unusable because my source code page uses a dark background and the theme is designed for a light background. Half of the code isn't readable, so I have to get rid of it anyway. This has not been addressed since June 2022 and the extension hasn't been updated since 2012 lol.
by Radley Sustaire, 2023-01-20

What I wanted. Thanks for the work. I think it'd be good if you add an option to revert the code back to its normal mode (un-beautified & un-indented). Currently, a workaround to do that, is though reloading the page.
by Nima Sajedi, 2022-06-14

Stopped woring! Used to work on older versions but not it does nothing.
by Mayank Raichura, 2022-05-20
View all user reviews

Extension safety

Risk impact

PrettyPrint requires some sensitive permissions that could impact your browser and data security. Exercise caution before installing.

Risk impact analysis details
  • Critical Grants access to browser tabs, which can be used to track user browsing habits and history, presenting a privacy concern.
  • Critical ****** ****** ** *** ********* ****** * *********** ******** **** ** ** *** ******* *** ****** **** **** *** ******* *****
  • High ******* ******* **** *** ****** ***** *** ***** ** ******* **** ********* ********* ** * *********** *****
Risk likelihood

PrettyPrint may not be trust-worthy. Avoid installing if possible unless you really trust this publisher.

Risk likelihood analysis details
  • Critical This extension is not longer available in the store
Upgrade to see full risk analysis details

Promo images

Small promo image

Similar extensions

Here are some Chrome extensions that are similar to PrettyPrint:

JSBeautify for Google Chrome™ JSBeautify for Google Chrome™
Thomas Rix
5K 3.69 (52)
DevTools Theme: Zero Dark Matrix DevTools Theme: Zero Dark Matrix
Maurice Cruz
10K 4.72 (545)
Syntaxtic! Syntaxtic!
andrew.j.matheny
5K 4.08 (200)
Swoosh Cookie and Local Storage Specialist Swoosh Cookie and Local Storage Specialist
https://steampunck.github.io
10K 3.94 (121)
JavaScript and CSS Code Beautifier JavaScript and CSS Code Beautifier
http://c7x.me
51K 4.29 (107)
Code Cola Code Cola
https://www.zhouqicf.com
20K 4.63 (188)
CSS Dig CSS Dig
https://cssdig.com
10K 2.86 (51)
JScript tricks JScript tricks
szamil
2K 4.22 (50)
Pretty HTML | CSS | XML Pretty HTML | CSS | XML
https://linangdata.com
4K 3.25 (12)
Sight Sight
tsenart
6K 4.33 (248)
XML Tree XML Tree
alan.stroop
90K 4.03 (555)
jQuery Debugger jQuery Debugger
Unknown
20K 3.62 (109)
Live CSS Editor Live CSS Editor
https://www.livecsseditor.com
20K 3.82 (181)
Quick source viewer Quick source viewer
Tomi Mickelsson
20K 3.63 (115)
CSSViewer CSSViewer
M.ed
100K 4.40 (368)
Tealium Tools Tealium Tools
https://tealium.com
30K 4.50 (28)
OctoLinker OctoLinker
https://octolinker.vercel.app
10K 4.88 (110)
Emmet LiveStyle Emmet LiveStyle
https://emmet.io
10K 4.36 (351)
JS Runtime Inspector JS Runtime Inspector
Anvaka
1,000 4.18 (11)
CSS Shapes Editor CSS Shapes Editor
Razvan Caliman
10K 3.82 (101)
JSON Finder JSON Finder
Rapee Suveeranont
3K 4.10 (20)
Octotree - GitHub code tree Octotree - GitHub code tree
https://octotree.io
300K 4.86 (1,138)
Bootstrap Twitter Offline Docs Bootstrap Twitter Offline Docs
https://titiskaifa.me
4K 4.60 (89)
LiveReload LiveReload
https://livereload.com
100K 3.80 (807)