Adding new button

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
Jon Simmons
Posts: 1
Joined: Sun Feb 07, 2010 2:02 pm

Adding new button

Post by Jon Simmons »

Hi,

I've just downloaded the HTMLPad trial and it looks very nice. I'm trying to add a new button to the HTML toolbar, to enclose selected text in <code>...</code> tags. Is there a way to do this?

Thanks!
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: Adding new button

Post by Gatis »

Hi,

You can not achieve exactly this.
However, you can achieve similar behaviour (when you get prompted for some text, and it then can be surrounded by some other text) using Code Snippets with Replacement Tokens.
You can not assign special button for this, but there is more convenient way - using Code Templates.

For more information see the built-in help file:
1) topic "Replacement tokens"
2) topic "About code templates"
Kind regards,
Gatis Avots
Post Reply