Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add *selection* placeholder for inserting HTML snippets (fragments) #164

Closed
RealRaven2000 opened this issue Dec 7, 2021 · 1 comment
Assignees

Comments

@RealRaven2000
Copy link
Owner

Improvement for the new insert Snippets feature from issue #142 - if the text *selection* is added, take any selected text and replace it into the snippet instead.

Example:

<style>
  code.html { 
    font-family: Consolas, 'Courier New', Geneva, sans-serif !important;
    color: #303030;
    border: 1px solid #bbb;
  }
</style>
<code class="html">&lt;*selection*&gt;</code>

If you have an email with the word "div", highlight the text "div" and then load the template above. This should replace the "div" with the HTML code below, and style it with a monospaced font:

<code class="html">&lt;div&gt;</code>

Note: I usually put my css rules in separate css files which I import with the %style()% command as part of my general support templates.

@RealRaven2000 RealRaven2000 self-assigned this Dec 7, 2021
@RealRaven2000 RealRaven2000 pinned this issue Dec 7, 2021
@RealRaven2000
Copy link
Owner Author

Implemented in 3.9 - released on 09/12/2021

@RealRaven2000 RealRaven2000 unpinned this issue Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant