You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Hi,
Sorry for my beginner's question. Is it possible to wrap selected text in snippet code?
Example:
Select some text, for example number 10 below: <p>Some text<sup>10</sup></p>
AFTER (inserts a snippet and adds the selected number 10 in three places): <p>Some text<sup><a epub:type="noteref" role="doc-noteref" href="#fn10" id="ref10">10</a></sup></p>
The text was updated successfully, but these errors were encountered:
There's a similar programmatic interface to the snippets module, so you could define a snippet on-the-fly that incorporates the selection. But in your example, there's no reason to do so; it's simpler to do it with Atom's built-in APIs.
Hi,
Sorry for my beginner's question. Is it possible to wrap selected text in snippet code?
Example:
Select some text, for example number 10 below:
<p>Some text<sup>10</sup></p>
AFTER (inserts a snippet and adds the selected number 10 in three places):
<p>Some text<sup><a epub:type="noteref" role="doc-noteref" href="#fn10" id="ref10">10</a></sup></p>
The text was updated successfully, but these errors were encountered: