Skip to content

A library for displaying code in human-readable format

License

Notifications You must be signed in to change notification settings

segeljakt/pretty_balanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pretty_balanced

A library for displaying code in human-readable format.

Example

use pretty_balanced::PrettyBalanced;

fn main() {
    println!("{}", "if 3 { foo; bar } else { baz }".pretty_balanced());
}

Output:

if 3 {
     foo;
     bar
} else {
     baz
}

The formatting simply inserts newline and indentation after (){}[]<>; characters.

About

A library for displaying code in human-readable format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages