#

formatting

Preserving and handling document formatting

ProgrammingANTLR4 Lexer Rules for Preserving XML DOCTYPE Formatting

Learn how to modify ANTLR4 lexer/parser rules to preserve spaces and formatting in XML DOCTYPE output using TokenStreamRewriter.getText().

4 answers 1 view
WebMarkdown Indentation Without Code Blocks: 6-Column Formatting

Learn how to indent specific lines in Markdown without code blocks. Achieve 6-column indentation while preserving bold text and other formatting using HTML, CSS, and alternative techniques.

1 answer 5 views
ProgrammingPrettier XML Formatting: Inline/Block Elements & Whitespace

Learn how to format XML with Prettier XML plugin, handling inline vs block elements correctly. Preserve whitespace using xmlWhitespaceSensitivity, prettier-ignore, xml:space, and CI-ready alternatives like xml-formatter or xmllint.

1 answer 3 views
WebHow to Format JavaScript Date to '10-Aug-2010' String

Learn javascript date format for '10-Aug-2010' using manual mapping, Intl.DateTimeFormat, or date-fns. Covers js date to string format functions, js string to date parsing, date string javascript examples, and locale-aware options.

1 answer 6 views