{"id":11973,"date":"2025-11-24T15:18:37","date_gmt":"2025-11-24T14:18:37","guid":{"rendered":"https:\/\/pumble.com\/help\/?p=11973"},"modified":"2026-01-23T13:11:30","modified_gmt":"2026-01-23T12:11:30","slug":"send-a-code-snippet","status":"publish","type":"post","link":"https:\/\/pumble.com\/help\/using-pumble\/format-and-style-messages\/send-a-code-snippet\/","title":{"rendered":"Send a Code Snippet"},"content":{"rendered":"\n<p class=\"note\">This feature is available on all plans.<\/p>\n\n\n\n<p>With code snippets, you can send parts of code, configuration files, or log files to users in your workspace.<\/p>\n\n\n\n<p>Here\u2019s how you can do this:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"translation-block\">Click the <strong>+ icon<\/strong> in the message editor<\/li>\n\n\n\n<li class=\"translation-block\">Select <strong>Text snippet<\/strong><br><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"213\" class=\"wp-image-11974\" style=\"width: 200px;\" src=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Code-snippet.jpeg\" alt=\"Add code snippet\" srcset=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Code-snippet.jpeg 622w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Code-snippet-282x300.jpeg 282w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Code-snippet-11x12.jpeg 11w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/li>\n\n\n\n<li>Enter snippet title (this is optional)<\/li>\n\n\n\n<li>Select snippet style<\/li>\n\n\n\n<li class=\"translation-block\">Paste the code into the <strong>Content<\/strong> section<\/li>\n\n\n\n<li class=\"translation-block\">Click on <strong>Create snippet<\/strong><br><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"297\" class=\"wp-image-11975\" style=\"width: 350px;\" src=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Snippet-code-modal.jpeg\" alt=\"snippet code modal\n\" srcset=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Snippet-code-modal.jpeg 1166w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Snippet-code-modal-300x254.jpeg 300w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Snippet-code-modal-1024x868.jpeg 1024w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Snippet-code-modal-768x651.jpeg 768w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Snippet-code-modal-14x12.jpeg 14w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/li>\n<\/ol>\n\n\n\n<p class=\"translation-block\">Users can click the <strong>collapse\/expand <\/strong>button to change the number of lines displayed in the snippet.<\/p>\n\n\n\n<p class=\"tip\">You can add a new snippet by using the keyboard shortcut Ctrl\/CMD + Shift + Enter.<\/p>\n\n\n\n<h2 class=\"wp-block-heading translation-block\">Edit snippet<\/h2>\n\n\n\n<p class=\"translation-block\">You can always edit the snippet and change the code inside it. To do this, hover over the snippet and click on the <strong>pencil<\/strong> icon.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"382\" height=\"222\" src=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/edit-snippet.jpeg\" alt=\"\" class=\"wp-image-11976\" style=\"width:186px;height:auto\" srcset=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/edit-snippet.jpeg 382w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/edit-snippet-300x174.jpeg 300w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/edit-snippet-18x10.jpeg 18w\" sizes=\"auto, (max-width: 382px) 100vw, 382px\" \/><\/figure>\n\n\n\n<p>This will open a modal where you can customize the snippet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading translation-block\">Share snippet<\/h2>\n\n\n\n<p>You can share code snippets directly with other workspace users. Here\u2019s how you can do this:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Hover over a snippet<\/li>\n\n\n\n<li class=\"translation-block\">Click on the <strong>share<\/strong> icon<\/li>\n\n\n\n<li>Select users<\/li>\n\n\n\n<li>Write your message (optional)<\/li>\n\n\n\n<li class=\"translation-block\">Click <strong>Share<\/strong><br><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"118\" class=\"wp-image-11977\" style=\"width: 200px;\" src=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/share-snippet.jpeg\" alt=\"share code snippet\" srcset=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/share-snippet.jpeg 386w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/share-snippet-300x177.jpeg 300w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/share-snippet-18x12.jpeg 18w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading translation-block\">Copy snippet to clipboard<\/h2>\n\n\n\n<p class=\"translation-block\">If you want to paste the code snippet somewhere, you can copy it to your clipboard by clicking on the <strong>copy to clipboard<\/strong> icon.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"398\" height=\"236\" src=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/copy-to-clipboard.jpeg\" alt=\"\" class=\"wp-image-11978\" style=\"width:190px;height:auto\" srcset=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/copy-to-clipboard.jpeg 398w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/copy-to-clipboard-300x178.jpeg 300w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/copy-to-clipboard-18x12.jpeg 18w\" sizes=\"auto, (max-width: 398px) 100vw, 398px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading translation-block\">Download snippet<\/h2>\n\n\n\n<p class=\"translation-block\">You can save code snippets directly to your computer by clicking on the<strong> download<\/strong> button. The files will be saved in a .txt format.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"398\" height=\"236\" src=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Download-snippet.jpeg\" alt=\"\" class=\"wp-image-11979\" style=\"width:196px;height:auto\" srcset=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Download-snippet.jpeg 398w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Download-snippet-300x178.jpeg 300w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/Download-snippet-18x12.jpeg 18w\" sizes=\"auto, (max-width: 398px) 100vw, 398px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading translation-block\">Delete snippet<\/h2>\n\n\n\n<p>To remove a code snippet from your workspace, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Hover over a snippet<\/li>\n\n\n\n<li class=\"translation-block\">Click on the<strong> three dots<\/strong><\/li>\n\n\n\n<li class=\"translation-block\">Click on <strong>Delete file<\/strong><\/li>\n\n\n\n<li class=\"translation-block\">Click on <strong>Delete<\/strong> to confirm the action<br><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"119\" class=\"wp-image-11980\" style=\"width: 200px;\" src=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/More-options-snippet.jpeg\" alt=\"Three dots snippet\" srcset=\"https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/More-options-snippet.jpeg 398w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/More-options-snippet-300x178.jpeg 300w, https:\/\/pumble.com\/help\/wp-content\/uploads\/2025\/11\/More-options-snippet-18x12.jpeg 18w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-group related-articles\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading translation-block\">Related Articles<\/h3>\n\n\n\n<ul class=\"wp-block-list related-articles-list\">\n<li class=\"translation-block\"><a href=\"https:\/\/pumble.com\/help\/using-pumble\/format-and-style-messages\/send-gifs\/\">Send GIFs<\/a><\/li>\n\n\n\n<li class=\"translation-block\"><a href=\"https:\/\/pumble.com\/help\/using-pumble\/format-and-style-messages\/format-messages\/\">Format Your Messages<\/a><\/li>\n<\/ul>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"This feature is available on all plans. With code snippets, you can send parts o&#8230;","protected":false},"author":42,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_helpful_status":1,"_searchwp_excluded":"","footnotes":""},"categories":[75],"tags":[],"class_list":["post-11973","post","type-post","status-publish","format-standard","hentry","category-format-and-style-messages"],"acf":[],"featured_image_src":null,"author_info":{"display_name":"Milos Milosavljevic","author_link":"https:\/\/pumble.com\/help\/author\/milos-milosavljevic\/"},"_links":{"self":[{"href":"https:\/\/pumble.com\/help\/wp-json\/wp\/v2\/posts\/11973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pumble.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pumble.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pumble.com\/help\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/pumble.com\/help\/wp-json\/wp\/v2\/comments?post=11973"}],"version-history":[{"count":22,"href":"https:\/\/pumble.com\/help\/wp-json\/wp\/v2\/posts\/11973\/revisions"}],"predecessor-version":[{"id":12019,"href":"https:\/\/pumble.com\/help\/wp-json\/wp\/v2\/posts\/11973\/revisions\/12019"}],"wp:attachment":[{"href":"https:\/\/pumble.com\/help\/wp-json\/wp\/v2\/media?parent=11973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pumble.com\/help\/wp-json\/wp\/v2\/categories?post=11973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pumble.com\/help\/wp-json\/wp\/v2\/tags?post=11973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}