Formatting
Formatting is the arrangement or transformation of content, data, or code according to specified structural, stylistic, or presentation conventions.
Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS
The formatting system is PowerShell's subsystem for converting objects into instructions for human-readable textual or onscreen output.
- How it is used
- Shapes collected PowerShell objects into readable reports and command output.
- How deep it goes
- Explains default views, type selection, and major pitfalls, but defers advanced combined-object formatting and undocumented custom-view XML.
- Examples
- Uses Get-Process, Get-History, PSReadLine formatting files, Get-Member, Get-FormatData, and experiments with the three main Format- cmdlets.
- What you can do after
- Practice/perform custom output formatting and recognize pipeline mixtures that produce unreliable displays.
React in Depth
A formatting rule is a specification for the syntactic style or layout that source files must follow.
- How it is used
- Standardizes source layout to reduce stylistic debates and help collaborators work consistently.
- How deep it goes
- Works through stylistic and line-break variants, then gives package, editor, and commit-hook steps without explaining formatter internals.
- Examples
- Contrasts quotes and spacing, then reformats a JavaScript filter expression as its conditions grow.
- What you can do after
- Operate/configure it: install Prettier, optionally adjust `.prettierrc`, integrate an editor, and optionally check changed files before commits.
Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools
A formatting system is the subsystem that applies display rules to structured data and generates instructions for rendering it.
- How it is used
- Separates command logic from the visual presentation of structured PowerShell output.
- How deep it goes
- Descends from automatic table-or-list selection to default views, XML format files, and module manifests.
- Examples
- Uses Get-DiskInfo output containing computer, domain controller, hardware, model, and memory properties.
- What you can do after
- Configure default and custom views that improve presentation without changing command output objects.
Learn Rust in a Month of Lunches
- How it is used
- Formats strings and values for display with Rust printing macros.
- How deep it goes
- Demonstrates escapes, raw strings, format specifiers, byte output, Unicode, and alignment through examples.
- Examples
- Uses multiline strings, quoted paths, byte arrays, Unicode characters, number bases, and aligned text.
- What you can do after
- Apply println! format strings to control how text and values are printed.
Read how Learn Rust in a Month of Lunches explains formatting →
Shipping Go: Develop, deliver, discuss, design, and go again
Code formatting is the automated or manual arrangement of source code according to consistent syntactic and stylistic conventions.
- How it is used
- Standardizes team code and moves a simple quality check into automated development and delivery workflows.
- How deep it goes
- Explains style choices, formatter behavior, local automation, and CI enforcement without developing formatter internals.
- Examples
- Uses Go fmt commands, Makefile targets, and a CI format-check job as concrete formatting artifacts.
- What you can do after
- Operate Go formatting locally and enforce unchanged formatting before tests through a CI pipeline.
Read how Shipping Go: Develop, deliver, discuss, design, and go again explains formatting →
Data Pipelines with Apache Airflow, Second Edition
A code formatter is a software tool that rewrites source code into a consistent formatting style according to configured or built-in rules.
- How it is used
- Applies a shared Python style across project code, especially DAG files maintained by multiple contributors.
- How deep it goes
- Demonstrates formatter behavior, installation, execution, and before-and-after output, but does not detail formatter configuration.
- Examples
- Uses noncompliant Python snippets, a reformatted function, and Black command output as concrete examples.
- What you can do after
- Apply consistent Python formatting with Black or YAPF and combine it with static checks when needed.
Read how Data Pipelines with Apache Airflow, Second Edition explains formatting →
D3.js in Action, Third Edition
Data formatting is the process of transforming data values and structure into a form suitable for subsequent processing or presentation.
- How it is used
- Prepares imported or gathered data for subsequent visualization and processing.
- How deep it goes
- Demonstrates row inspection, type conversion, property selection, and deferred whole-dataset formatting.
- Examples
- Uses D3 CSV rows containing technology and count fields, plus gathered paintings, drawings, and letters data.
- What you can do after
- Build it from scratch by converting CSV rows into visualization-ready JavaScript objects.
Read how D3.js in Action, Third Edition explains formatting →
Also covered in
- Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform
- "Looks Good to Me"
- Build Financial Software with Generative AI (From Scratch)
- The Well-Grounded Rubyist, Fourth Edition
- Build Python Web Apps with Streamlit
- How Computers Make Books
- Modern C, Third Edition
- Go in Practice, Second Edition
- 100 Go Mistakes and How to Avoid Them
- Modern C
- The Design of Web APIs, Second Edition
- Go in Action, Second Edition
What to know first
- moduleA module is a cohesive unit of code or computation that groups related functionality within a larger system and defines a scope or boundary for organizing or sharing it.
- software testingSoftware testing is the systematic evaluation of software under specified inputs or conditions to assess its behavior against expected results or requirements and identify defects.
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
- attributeAn attribute is a named property or piece of information associated with an entity, object, or structured data item.
Related concepts
- viewuses · A view is a named, stored set of formatting rules for displaying objects of a particular type.
- gofmtimplemented by · gofmt is Go’s standard source-code formatter, applying the language’s canonical formatting style automatically.
Questions about formatting
What is formatting?
Formatting is the arrangement or transformation of content, data, or code according to specified structural, stylistic, or presentation conventions.
Which Manning books explain formatting?
Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS, React in Depth, Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools, Learn Rust in a Month of Lunches, Shipping Go: Develop, deliver, discuss, design, and go again, Data Pipelines with Apache Airflow, Second Edition and D3.js in Action, Third Edition.
What should I know before learning formatting?
Manning books that teach formatting usually introduce module, software testing, JavaScript and attribute first.
What is the difference between formatting and Out-GridView?
Formatting is the arrangement or transformation of content, data, or code according to specified structural, stylistic, or presentation conventions. Out-GridView is a PowerShell cmdlet that displays objects in an interactive graphical grid for viewing and selection.
What kinds of formatting are there?
Kinds of formatting include SQLFluff.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.






