Is there a way to add (click) programatically?

Here is what I did with Markdown.