#Codeblock
Here's a code viewer for a docs page. Switch between C# and JavaScript, then copy the sample without line numbers.

CTFramework demo + full code: https://framework.coettools.com/components
CodeBlock → Open live example.
Setup: https://framework.coettools.com/getting-started

#JavaScript #WebDev
November 6, 2026 at 5:36 PM
It wouldn't be different from codeblock in the README, and maybe that's enough... But if you add this then ATProto can also become a package browser ;)
October 13, 2026 at 5:56 PM
📦 b13/codeblock 2.2.1

Custom Content Type for code snippet elements to show text with code highlighting in TYPO3.

🔗 https://github.com/b13/codeblock
October 13, 2026 at 2:03 PM
I never said I'm just joking!
Yeah especially in this era, not all users of code forge are devs.

For "copy script" button... I'm not sure how would it be different from codeblock in README, but we can't start the discuss about integration when we consider markdown.
October 13, 2026 at 5:43 PM
some screen readers may use the HTML element classes to know what the language of the codeblock is. `less` for whatever reason is now aliased with `css` despite having a slightly different use case. `svg` is now registered as `xml` even tho the spec is basically xml with flair. what's with `yuri`?
October 12, 2026 at 6:04 PM
Styling question: This codeblock is inside of a div with max-width: 70
and I wanna preserve whitespaces and intentional newlines while also breaking if the block grows larger than the parent how would I do that here. Both word break and overflow break dont seem to work #css
October 10, 2026 at 12:33 PM
[language_md] support more syntax and more languages in codeblock (#605)

- add more language identifiers in code blocks
Initially I wish to add all supported languages, but give up halfway
- fix json syntax
- move short identifiers/aliases to the end to avoid mismatch

No...
September 19, 2026 at 7:53 AM
I've been working on my talk for p99conf.io and because I wanted to re-use visuals from my ngrok.com/blog/quantiz... blog post, I used Remotion.

I didn't want to have to manually move clips around, though, because that's hard with eye tracking, so I made a DSL to switch slides based on what I say.
September 14, 2026 at 2:43 PM
fuck all ai bots for stealing my em dash i spammes that shit before they were a codeblock
August 31, 2026 at 4:00 PM
Generally, face/no-face, or different expressions, tend to perform very similarly for me. There have been exceptions, but these screenshots are the norm.
August 27, 2026 at 3:08 PM
I CANT EVEN GET THE CODEBLOCK TO RENDER AHHHHHH #linux, #postmarketos, #pain
August 24, 2026 at 1:17 AM
Not really since it’s a client side pseudo-class. But maybe you could precompile some kind of data object that makes highlighting faster and more lightweight.... most of the clientside script is fetching and matching the patterns to the codeblock. But I’m not sure if the Range type serializes.
August 20, 2026 at 1:39 PM
Nice...
August 19, 2026 at 5:12 PM
I mean like, how do I create a codeblock in a post?
August 15, 2026 at 8:38 AM
@evernote.bsky.social please add KQL to supported code languages in the codeblock. Would be a welcome additions.
January 17, 2025 at 8:47 PM
it's actually quite powerful that you can use [codeblock] in gdscript documentation because it has the Copy button to quickly pull code snippets out of your "library" scripts

Might start using it a lot 🤔
November 23, 2024 at 12:35 PM
Today I learned: Using variables in Python lambdas is weird

Apparently they store the variable names and not the values. Like a reference, even for primitives. But if you supply the value as a default argument, it works as intended.

#python #programming #programmerhumor #til
March 13, 2026 at 8:02 PM
I gave Claude the easy task of comparing two lists of genome accession numbers. The python script it wrote functions correctly, but the matches it lists below DO NOT EXIST.

You need to be very careful with LLMs. Errors like this could derail an entire project!
March 13, 2025 at 3:02 PM
day two of sick. bleh (getting better tho).

luckily i got this very cool clipboard button that actually copies text from the codeblock it's in

it's a very cool button
October 7, 2025 at 1:15 PM
Oh gotcha. Anytime I'm indenting is when I'm using bullets/lists, so I never perceived that as an issue.

@obsidian.md should remove it or at least make it toggle-able. While I do often use codeblocks, I always use proper MD backtick formatting and never found a use for the indent-to-codeblock UX 🌴
May 15, 2025 at 8:24 PM
My last design pass before going grocery shopping mostly increased all the font sizes. This shoooould be pretty good, but we'll see when I get it on my junk little Moto E.
February 25, 2025 at 4:05 AM
Working on the CodeBlock editor tool shelf this evening. It's going to have two modes you can swap between, offering either common operations, or useful symbols. I need to add the swap mode button beneath it still, and add buttons to the bar, too. Ugh.
February 25, 2025 at 4:02 AM
Not super important work, but I figured out changing colors on fonts that are using LabelSettings, and the codeblock number is now red if this is the offending block. Same for the title text when the edit screen is brought up. Just a bit of reinforcement.
February 23, 2025 at 9:50 PM
Took a whopping 8 minutes to get line numbers displayed, but now I'm facing a decision. Everything is juuuuuust a little easier if I keep it 0 indexed.
February 23, 2025 at 8:36 PM
I can save myself a lot of work and frustration if Deimos doesn't have to read outside shader code. In fact, the easiest would be if it only ever stores shaders in codeblock format and exported to GDShader.
February 20, 2025 at 4:02 AM