Writing & StyleStyle guide

Formatting Error Messages in Technical Documentation

Formatting Error Messages in Technical Documentation summarizes Microsoft’s sentence-case and quotation-mark treatment for error messages.

Quick answer

Use sentence-style capitalization for error messages, and put a referenced error message in quotation marks when quoting it in running text.

Key details

Core IssueMicrosoft style uses sentence-style capitalization for error messages and quotation marks when an error message is referenced in running text.
Registertechnical and professional documentation

Important caveats

Scope Boundary

This is a Microsoft formatting convention and should not override product-specific strings that must be reproduced exactly.

Further guidance

Content

Use sentence-style capitalization for error messages; when referring to an error message in prose, enclose the quoted message in quotation marks.

Purpose

Distinguish literal error text from surrounding explanation and keep message presentation consistent.

Sources and evidence

Sources are shown with the role they play in this guide. Historical or style-sensitive claims are kept within the evidence boundary described above.

  1. Formatting common text elements — Microsoft Style Guide (opens in a new tab)Microsoft · Microsoft technical-style conventions for error messages and common text elements

Related guides

Writing & Style

Formatting AI Prompts in Technical Documentation

Formatting AI Prompts in Technical Documentation records a distinct Microsoft Style Guide authoring convention and keeps it explicitly scoped to technical documentation rather than presenting it as a universal grammar rule.

Writing & Style

Formatting Attributes in Technical Documentation

Formatting Attributes in Technical Documentation records a distinct Microsoft Style Guide authoring convention and keeps it explicitly scoped to technical documentation rather than presenting it as a universal grammar rule.

Writing & Style

Formatting Classes in Technical Documentation

Formatting Classes in Technical Documentation records a distinct Microsoft Style Guide authoring convention and keeps it explicitly scoped to technical documentation rather than presenting it as a universal grammar rule.

Writing & Style

Formatting Code Keywords in Technical Documentation

Formatting Code Keywords in Technical Documentation records a distinct Microsoft Style Guide authoring convention and keeps it explicitly scoped to technical documentation rather than presenting it as a universal grammar rule.

Writing & Style

Formatting Code Samples in Technical Documentation

Formatting Code Samples in Technical Documentation records a distinct Microsoft Style Guide authoring convention and keeps it scoped to technical instructions rather than presenting it as a universal grammar rule.

Writing & Style

Formatting Constants in Technical Documentation

Formatting Constants in Technical Documentation records a distinct Microsoft Style Guide authoring convention and keeps it explicitly scoped to technical documentation rather than presenting it as a universal grammar rule.

Writing & Style

Formatting Control Classes in Technical Documentation

Formatting Control Classes in Technical Documentation records a distinct Microsoft Style Guide authoring convention and keeps it explicitly scoped to technical documentation rather than presenting it as a universal grammar rule.

Writing & Style

Formatting Data Formats in Technical Documentation

Formatting Data Formats in Technical Documentation records a distinct Microsoft Style Guide authoring convention and keeps it explicitly scoped to technical documentation rather than presenting it as a universal grammar rule.

Explore the topic