Sample Formatting

A story by Ben W

×

Filter

Search by category
Choose a sub-category
Get more specific
Get super specific
Author
Tags

The HistoryChip site (circa Jan 2020) has limited support for formatting: the author can embed a limited set of html tags into a story while editing and when the story is displayed, the formatting will take effect. Only certain tags are supported however: image references and hyperlinks are examples of tags that are not supported. White space - including the middle of a sentence like that, or line breaks, are preserved.\r\n\r\n\r\nTags are composed of a \'<\' character, a formatting tag, and a \'>\' character with no spaces allowed between the angle brackets and the formatting tag. The allowed tags require starting and ending tags. (If you want to write an \'<\' or \'>\' you have to write &lt; and &gt;.)\r\n\r\n\r\nThe <b>...</b> tag-pair produces bold text.\r\nThe <I>...</I> tag-pair produces italic text.\r\nWe can nest them to get bold and bold italic text.\r\nThe <pre>...</pre> tag-pair produces pre-formatted text which preserves spacing, prevents line wrap, and uses a mono-space font.\r\n

\r\nThis is multiline\r\ntext with some extra spaces.\r\n
\r\n\r\nThe <code>...</code> tag-pair is designed to format program or script code.\r\n\r\npublic class HelloWorld {\r\n\r\n public static void main(String[] args) {\r\n System.out.println(\"Hello, World\");\r\n }\r\n\r\n}\r\n\r\n\r\nN.B. no markup is allowed inside a block of pre-formatted text.\r\n\r\nHere is a test of strip tags < there is a bunch of random text here> did it get removed?

 education
  CT
Jan 27, 2020

Sign-up for our Newsletter