prettify 0.3.14

  • Readme
  • Changelog
  • Installing
  • 61

prettify - Code prettifier for Dart #

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

Usage #

The step-by-step guide is on

Features and bugs #

Please file feature requests and bugs at the issue tracker.

License #

Copyright 2018 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

Unreleased #

Feature #

  • Sample works now with Material4Dart 4ef4dc3

Bugs #

  • Sample used IOCContainer instead of Container 4623a80
  • Sample had no dependency to sass_builder 29c32bb
  • Jenkins build-script had wrong path to sample 070d8a5

Docs #

  • Sample uses latest MDL-Version 02e4bf5

Refactor #

  • Preparing for Dart 2. Example is not ready yet 453629f

v0.2.1 - 2016-11-16

Docs #

  • Strong-Mode support added fef252a

v0.2.0 - 2015-12-07

Fixes #

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

Docs #

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

v0.1.1 - 2015-03-03

Docs #

  • Link to usage-guide added 6bfab80

v0.1.0 - 2015-03-03

Feature #

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.14

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter 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';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 20, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4

Health issues and suggestions

Document public APIs. (-1 points)

2 out of 2 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Format lib/prettify.dart.

Run dartfmt to format lib/prettify.dart.

Maintenance suggestions

The package description is too short. (-17 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and prettify.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.

Package is getting outdated. (-8.49 points)

The package was last published 56 weeks ago.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
Dev dependencies
args any
build_runner any
build_test any
build_web_compilers any
console_log_handler >=1.1.0 <2.0.0
grinder any
logging >=0.11.3 <1.0.0
test any