The table below shows the full list of languages (and corresponding classes/aliases) for markdown codeblocks.
| Language | Aliases |
|---|---|
| 1C | 1c |
| 4D | 4d |
| ABAP | sap-abap, abap |
| from unittest.mock import patch | |
| import pika | |
| def callback_func(channel, method, properties, body): | |
| print("Message consumed:", body) | |
| @patch("pika.BlockingConnection", spec=pika.BlockingConnection) | |
| def mock_publish(mock_conn): | |
| def side_effect_publish(exchange, routing_key, body): | |
| print(f"Message published to {routing_key}:", body) |
The latest VSCode update brought the requirement to use a python environment 3.8+ for isort:
2025-04-24 13:28:29.888 [info] No interpreter found from setting isort.interpreter| /* | |
| Solution of: https://www.codewars.com/kata/545434090294935e7d0010ab | |
| */ | |
| var query = function () { | |
| var self = {}; | |
| var tables = []; | |
| var selector = null; |
| {-# LANGUAGE ForeignFunctionInterface #-} | |
| import System.Console.ANSI (clearScreen) | |
| import Data.Char | |
| import Foreign.C.Types | |
| import Prelude hiding (Left, Right) | |
| import GHC.Exts (groupWith, sortWith) | |
| import Control.Arrow | |
| import System.Random | |
| import System.IO | |
| import Data.Hashable |
| man | |
| kvinna | |
| är | |
| pojke | |
| flicka | |
| jag | |
| en | |
| han | |
| hon | |
| ett |
| # Caesar cipher encoding | |
| echo "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG" | tr '[A-Z]' '[X-ZA-W]' | |
| # output: QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD | |
| # Caesar cipher decoding | |
| echo "QEB NRFZH YOLTK CLU GRJMP LSBO QEB IXWV ALD" | tr '[X-ZA-W]' '[A-Z]' | |
| # output: THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG | |
| # Can also be adjusted to ROT13 instead |