snippet question - Post ID 138850

User 2135494 Photo


Registered User
1 post

How do I form a snippet that will appear on both sides of a selected piece of text? (Like an <em> tag.)

For example, I want a snippet that will put double quotes around a piece of text.

&ldquo;(quote)&rdquo;

In another program I used you put ^& between the two codes, but that doesn't seem to work here.

Thanks
User 364143 Photo


Guest
5,410 posts

The snippet is just adding a text string to a specific point and not a function where you can do that. You would need to create two snippets, one for each end, and add them separately.
CoffeeCup... Yeah, they are the best!
User 38401 Photo


Senior Advisor
10,951 posts

I beleive (don't quote me on it as I haven't tried messing with it yet lol) you can edit the markup to do that.

Go to Edit >> Add/Edit HTML tag Markup

From there I believe you can create, edit, remove, etc. tags that you'd like to work with. Hopefully that's what you're looking for and if not... nevermind :)
User 117361 Photo


Ambassador
6,076 posts

For the kind of snippet you are after, I create both ends of the "tag" and then leave the central part empty where I will paste in the appropriate content when I need it.
User 38401 Photo


Senior Advisor
10,951 posts

Right, but editing the Markup will make it auto enter the tags won't it? Haven't tried it yet but I was assuming that's how it would work.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.