prettify 0.3.2

  • Installing
  • Versions
  • 75

prettify - Code prettifier for Dart

Beautify the code snippets in your web page
Based on Googles google-code-prettify


The step-by-step guide is on

Features and bugs

Please file feature requests and bugs at the issue tracker.


Copyright 2017 Michael Mitterer (,
IT-Consulting and Development Limited, Austrian Branch

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
either express or implied. See the License for the specific language
governing permissions and limitations under the License.

If this plugin is helpful for you - please (Circle) me
or star this repo here on GitHub

Change Log for prettify

Beautify the code snippets in your web page



  • Sample uses latest MDL-Version 02e4bf5

v0.2.1 - 2016-11-16


v0.2.0 - 2015-12-07


  • Usage-Sample has now a fixed header on mobile aa4597b


  • Added Grinder + switched sample to Mdl/Dart framework c26a217

v0.1.1 - 2015-03-03


v0.1.0 - 2015-03-03


This was generated with Changelog for Dart

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  prettify: "^0.3.2"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:prettify/prettify.dart';
Version Uploaded Documentation Archive
0.3.2 Dec 13, 2017 Go to the documentation of prettify 0.3.2 Download prettify 0.3.2 archive
0.2.1 Nov 16, 2016 Go to the documentation of prettify 0.2.1 Download prettify 0.2.1 archive
0.2.0 Dec 7, 2015 Go to the documentation of prettify 0.2.0 Download prettify 0.2.0 archive
0.1.2 Mar 3, 2015 Go to the documentation of prettify 0.1.2 Download prettify 0.1.2 archive
0.1.1 Mar 3, 2015 Go to the documentation of prettify 0.1.1 Download prettify 0.1.1 archive
0.1.0 Mar 3, 2015 Go to the documentation of prettify 0.1.0 Download prettify 0.1.0 archive


We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
57 / 100
Code health derived from static analysis. [more]
90 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: web, other

Primary library: package:prettify/prettify.dart with components: js.


  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use prettify.dart.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 hint.

    Run dartfmt to format lib/prettify.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.


Package Constraint Resolved Available
Dev dependencies
args any
console_log_handler >=0.5.0 <1.0.0
grinder any
logging >=0.11.3 <1.0.0
test any