{"id":1768,"date":"2023-12-18T17:00:28","date_gmt":"2023-12-18T14:00:28","guid":{"rendered":"https:\/\/telegram.im\/blog\/code-formatting\/"},"modified":"2023-12-18T17:00:28","modified_gmt":"2023-12-18T14:00:28","slug":"code-formatting","status":"publish","type":"post","link":"https:\/\/telegram.im\/blog\/code-formatting\/","title":{"rendered":"Code Formatting."},"content":{"rendered":"<p><img style=\"display:none\" src=\"https:\/\/telegram.im\/blog\/wp-content\/uploads\/2023\/12\/CodeFormatting411.jpg\"><video style=\"display:none\" src=\"https:\/\/telegram.im\/blog\/wp-content\/uploads\/2023\/12\/CodeFormatting411.mp4\"><div style=\"width: 640px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-1768-1\" width=\"640\" height=\"360\" loop=\"1\" autoplay=\"1\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/telegram.im\/blog\/wp-content\/uploads\/2023\/12\/CodeFormatting411.mp4?_=1\" \/><a href=\"https:\/\/telegram.im\/blog\/wp-content\/uploads\/2023\/12\/CodeFormatting411.mp4\">https:\/\/telegram.im\/blog\/wp-content\/uploads\/2023\/12\/CodeFormatting411.mp4<\/a><\/video><\/div><b>Code Formatting.<\/b> Messages with text sent as <code>```code```<\/code> automatically identify the <b>coding language<\/b> used and<b> highlight syntax<\/b> \u2013 and you can click or tap to instantly copy the code.<\/p>\n<p>Working with code blocks works best on the <a href=\"https:\/\/desktop.telegram.org\/\" target=\"_blank\" rel=\"noopener\">Telegram Desktop<\/a> app, <a href=\"https:\/\/web.telegram.org\/\" target=\"_blank\" rel=\"noopener\">Telegram Web<\/a> or <a href=\"https:\/\/macos.telegram.org\/\" target=\"_blank\" rel=\"noopener\">Telegram for macOS<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Code Formatting. Messages with text sent as &#8220;`code&#8220;` automatically identify the coding language used and highlight syntax \u2013 and you can click or tap to instantly copy the code. Working with code blocks works best on the Telegram Desktop app, Telegram Web or Telegram for macOS.<\/p>\n","protected":false},"author":1,"featured_media":1769,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/telegram.im\/blog\/wp-json\/wp\/v2\/posts\/1768"}],"collection":[{"href":"https:\/\/telegram.im\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/telegram.im\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/telegram.im\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/telegram.im\/blog\/wp-json\/wp\/v2\/comments?post=1768"}],"version-history":[{"count":0,"href":"https:\/\/telegram.im\/blog\/wp-json\/wp\/v2\/posts\/1768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/telegram.im\/blog\/wp-json\/wp\/v2\/media\/1769"}],"wp:attachment":[{"href":"https:\/\/telegram.im\/blog\/wp-json\/wp\/v2\/media?parent=1768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/telegram.im\/blog\/wp-json\/wp\/v2\/categories?post=1768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/telegram.im\/blog\/wp-json\/wp\/v2\/tags?post=1768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}