{"id":283,"date":"2020-03-22T22:45:39","date_gmt":"2020-03-22T21:45:39","guid":{"rendered":"https:\/\/pmortensen.eu\/world2\/?p=283"},"modified":"2025-12-06T15:32:15","modified_gmt":"2025-12-06T14:32:15","slug":"bold-and-italics-in-youtube-comments","status":"publish","type":"post","link":"https:\/\/pmortensen.eu\/world2\/2020\/03\/22\/bold-and-italics-in-youtube-comments\/","title":{"rendered":"Bold and italics in YouTube comments"},"content":{"rendered":"<p>If you use a search engine, you may find out the base rules for styling in YouTube comments, but they <strong><em>never<\/em><\/strong> tell you the whole story (for it to actually work in all cases). In fact, at first glance, it appears styling in YouTube comments is broken. But it is not! &#8211; read on to see how it can be made to work reliably. Note, however, that <strong><em>bold is currently broken<\/em><\/strong> (as of 2020-11-09).<\/p>\n<h2>Base rules<\/h2>\n<h3>Italics<\/h3>\n<p>Enclose the text in a pair of underscores, &#8220;_&#8221;.<\/p>\n<p>Example:<\/p>\n<p><code>Part of this is _to be in italics_ and other parts not.<\/code><\/p>\n<p>Result:<\/p>\n<p>Part of this is <em>to be in italics<\/em> and other parts not.<\/p>\n<h3>Bold<\/h3>\n<p>Enclose the text in a pair of asterisks, &#8220;*&#8221;.<\/p>\n<p>Example:<\/p>\n<p><code>Part of this is *to be in bold* and other parts not.<\/code><\/p>\n<p>Result:<\/p>\n<p>Part of this is <strong>to be in bold<\/strong> and other parts not.<\/p>\n<h3>Bold <em>and<\/em> italics <\/h2>\n<p>Just enclose the inner (italics) in bold, just like any other text.<\/p>\n<p>Example:<\/p>\n<p><code>Combining *_both italics and bold_* is easy.<\/code><\/p>\n<p>Result:<\/p>\n<p>Combining <strong><em>both italics and bold<\/em><\/strong> is easy.<\/p>\n<h3>Strike through<\/h3>\n<p>Note: This is a poor form of a revision history and it should seldomly be used.<\/p>\n<p>Enclose the text in a pair of dashes (actually minus signs), &#8220;-&#8220;.<\/p>\n<p>Example:<\/p>\n<p><code>I -wildly guessed- did extensive research to find...<\/code><\/p>\n<p>Result:<\/p>\n<p>I <s>wildly guessed<\/s> did extensive research to find&#8230;<\/p>\n<h2>More rules<\/h2>\n<p>Without observing these, the styling may simply silently fail.<\/p>\n<h3>There must <em>not<\/em> be a space at the beginning and end of the enclosed text<\/h3>\n<p>That is, <em>immediately<\/em> after the first underscore or asterisk, there must be a number, letter, or special character. If it is a space, the text styling does not work. In other words, the inner text must not have leading or trailing space. <\/p>\n<p>The same <em>immediately<\/em> before the last underscore or asterisk.<\/p>\n<h3>There <em>must<\/em> be a space to either side of the formatting characters<\/h3>\n<p>That is, for example, a space <em>before<\/em> the starting underscore and a space <em>after<\/em> the ending underscore.<\/p>\n<p>This sometimes forces you to use <a href=\"https:\/\/english.stackexchange.com\/questions\/4645\/is-it-ever-correct-to-have-a-space-before-a-question-or-exclamation-mark#comment206109_4645\">the Indian space<\/a> (from the outdated 1935 <em><a href=\"https:\/\/en.wikipedia.org\/wiki\/Wren_%26_Martin\">Wren &#038; Martin textbook<\/a><\/em>). It is not ideal, but some alternatives are: 1) Leave out the punctuation 2) Use dash\/minus to continue into a second part. 3) Use the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Whitespace_character#Unicode\"><em>hair space<\/em><\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Unicode\">Unicode<\/a> <a href=\"https:\/\/en.wikipedia.org\/wiki\/Whitespace_character#Unicode\">U+200A<\/a> (&#8220;\u200a&#8221;. E.g., it can be entered with <kbd>Ctrl<\/kbd> + <kbd>Shift<\/kbd> + 200A + <kbd>Return<\/kbd> on Linux (e.g. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Ubuntu_%28operating_system%29\">Ubuntu<\/a>\/<a href=\"https:\/\/en.wikipedia.org\/wiki\/Cinnamon_(desktop_environment)\">Cinnamon<\/a>) and it also works copy-pasting it from this page). 4) Add some content in parentheses (as there is a space before the opening parenthesis). E.g., <em>&#8221; (see also XYZ)&#8221;<\/em>.<\/p>\n<p>Example where a space is needed before punctuation in order for the styling to work (bold):<\/p>\n<p><code>Well, I *lost a pawn* , but it's just a pawn.<\/code><\/p>\n<p>Result (note the Indian space between &#8220;pawn&#8221; and the second comma (&#8220;,&#8221;)):<\/p>\n<p>Well, I <strong>lost a pawn<\/strong> , but it&#8217;s just a pawn.<\/p>\n<h3>A hard linebreak resets the formatting<\/h3>\n<p>For multiline text (where you insert hard line breaks), the formatting must be applied for each line. Hard breaks are necessary in YouTube comments when indenting is to be preserved.<\/p>\n<p>Example where all of the text is to be in italics:<\/p>\n<p><code>     _\"One of the spires of Zagreb Cathedral broke off and fell on_<br \/>\n     _the Archbishop's palace. ... A part of the roof of the_<br \/>\n     _Croatian Parliament building collapsed.\"_<\/code><\/p>\n<p>Result:<\/p>\n<p>     <em>&#8220;One of the spires of Zagreb Cathedral broke off and fell on <br \/>\nthe Archbishop&#8217;s palace. &#8230; A part of the roof of the<br \/>\nCroatian Parliament building collapsed.&#8221;<\/em><\/p>\n<h3>Beware of asterisks and underscores in the original text<\/h3>\n<p>Example, in a URL:<\/p>\n<p><code> en DOT wikipedia DOT org\/wiki\/Ian_Nepomniachtchi<\/code><\/p>\n<p>This is difficult or impossible to get in italics because of the underscore between &#8220;Ian&#8221; and &#8220;Nepomniachtchi&#8221;. The workaround is to format in bold (using asterisks) instead.<\/p>\n<h2 id=\"YouTube_breaks_stuff\">YouTube breaks stuff and never fixes anything<\/h2>\n<h3>Exhibit 1<\/h3>\n<p>On 2020-05-21 YouTube comments broke. After having worked flawlessly for years, now it does not seem possible to have empty lines in YouTube comments (it could be an overreaction to the problem of too many empty lines when using the (physical) Return key). And leading space (for indent) may be removed.<\/p>\n<p>This was observed on Linux (<a href=\"https:\/\/en.wikipedia.org\/wiki\/Ubuntu_version_history#Ubuntu_19.10_(Eoan_Ermine)\">Ubuntu&nbsp;19.10 (Eoan Ermine)<\/a>, but with <a href=\"https:\/\/en.wikipedia.org\/wiki\/Cinnamon_(desktop_environment)\">Cinnamon<\/a> as the desktop environment) with Firefox 76.0.1 (current on the date). Though the operating system shouldn&#8217;t matter, and probably not the particular web browser either.<\/p>\n<h4>Workaround<\/h4>\n<p>For empty lines, the workaround is to add a space on the line that should appear empty. Also, <a href=\"https:\/\/pmortensen.eu\/world\/Text.php\">Edit Overflow&#8217;s YouTube formatter<\/a> (button <em>&#8220;Transform for YouTube comments&#8221;<\/em>) has also been extended with this workaround such that it can also be used to preserve empty lines.<\/p>\n<h3>Exhibit 2<\/h3>\n<p>On 2020-07-09 <strong>bold<\/strong> in YouTube comments broke &#8211; it was rendered as normal text (<em>italics<\/em> still worked). There didn&#8217;t seem to be a workaround. <\/p>\n<p>On 2020-07-30 it worked again (but didn&#8217;t a few days prior). It broke again in August 2020 and was broken until 2020-09-28. But then it was promptly broken the same day &#8211; as of 2020-10-09 it was still broken. <\/p>\n<p>On 2020-11-01 it started working again (both when adding new comments and old comments with bold formatting (asterisks)), but again only for a single day. <\/p>\n<p>As of 2020-11-09 it is still broken. Why in hell can&#8217;t they add a regression test for a simple thing like this????<\/p>\n<p>On 2021-03-11 it worked again, but it was broken again one day later. <\/p>\n<h3 id=\"broken-edit-comments\">Exhibit 3<\/h3>\n<p>In 2021-02, editing of comments (effectively) broke. In about 50% of the cases, an error is displayed after submitting an edit. And the comment is deleted \/ lost! And resubmitting the content (e.g., it could be in a text document or in the clipboard) will fail with an error &#8211; you are essentially blocked from having that comment active that you just wanted to edit (it is not clear how long or under which conditions this persists &#8211; it may be possible to resubmit it at a later time. In any case, it is a huge hassle). <\/p>\n<p>Any action after the first failure, even adding new comments, may fail <em>silently<\/em> (you are not even told it failed &#8211; content is lost). This is even on different pages, in different browser tabs, and also after restarting the web browser. It may or may not be necessary to wait 24 hours before attempting it again.<\/p>\n<p>The workaround is to never edit directly. Instead, open for editing, copy the content to the clipboard, cancel the edit, delete the comment, and create a new comment with the edits included.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you use a search engine, you may find out the base rules for styling in YouTube comments, but they never tell you the whole story (for it to actually work in all cases). In fact, at first glance, it &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/pmortensen.eu\/world2\/2020\/03\/22\/bold-and-italics-in-youtube-comments\/\"> <span class=\"screen-reader-text\">Bold and italics in YouTube comments<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15,42],"tags":[],"_links":{"self":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/283"}],"collection":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":95,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":2282,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/283\/revisions\/2282"}],"wp:attachment":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}