Simon Willison 7/7/2026

github-code Web Component

Read Original

This article introduces an experimental Web Component called 'github-code' built using GPT-5.5. It allows embedding code snippets from GitHub by taking a URL, converting it to a raw.githubusercontent.com link, fetching the file, and displaying a specified range of lines with line numbers but no syntax highlighting. The component is demonstrated with a live preview, showcasing its functionality for developers looking to integrate GitHub code into web pages.

github-code Web Component

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet