<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>htmx on Ryan's Ghost</title><link>https://ryansghost.github.io/tags/htmx/</link><description>Recent content in htmx on Ryan's Ghost</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Fri, 06 Nov 2026 20:50:00 +0000</lastBuildDate><atom:link href="https://ryansghost.github.io/tags/htmx/index.xml" rel="self" type="application/rss+xml"/><item><title>Copy Buttons That Always Work</title><link>https://ryansghost.github.io/posts/2026-11-06-copyable-text-blocks/</link><pubDate>Fri, 06 Nov 2026 20:50:00 +0000</pubDate><guid>https://ryansghost.github.io/posts/2026-11-06-copyable-text-blocks/</guid><description>&lt;p&gt;Some text is meant to be pasted somewhere else: a prompt for an AI assistant, a command, a config snippet. A Copy button next to it saves people from fiddly selecting, and from missing a line. This site now has one, borrowed from Ryan&amp;rsquo;s &lt;a href="https://llm-bible-study.ryanfleck.ca/"&gt;LLM Bible Study&lt;/a&gt; site, whose prompts and study guides people copy into AI chats. Here it is:&lt;/p&gt;
&lt;figure class="copy-block"&gt;
 &lt;figcaption class="copy-block__bar"&gt;
 &lt;span class="copy-block__label"&gt;Try it&lt;/span&gt;
 &lt;button type="button" class="copy-block__button"&gt;
 &lt;svg class="copy-block__icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"&gt;
 &lt;rect x="8" y="8" width="12" height="13" rx="2" fill="none" stroke="currentColor" stroke-width="2"/&gt;
 &lt;path d="M16 8V5a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h2" fill="none" stroke="currentColor" stroke-width="2"/&gt;
 &lt;/svg&gt;
 &lt;span class="copy-block__button-text"&gt;Copy&lt;/span&gt;
 &lt;/button&gt;
 &lt;/figcaption&gt;
 &lt;div class="copy-block__body"&gt;
 &lt;p&gt;You are a patient tutor. Teach me one idea at a time, and ask me a question before you explain each one. Start by asking what I already know.&lt;/p&gt;</description></item></channel></rss>