WordPress provide shortcode functionality. You can create your own shortcode and put it any page to show you shortcode content.
Check below example for creating shortcode :
/** Html Code **/
function my_html_code_fun( $atts ) {
$html = '<div>';
$html .= '<p>Hello World</p>';
$html = '</div>';
return $html;
}
/** Create Shortcode **/
add_shortcode( 'my_html_code', 'my_html_code_fun' );
Now you have to add [my_html_code]
shortcode in page’s/post’s editor & save page/post.
You can add above code in your plugin.
Check link for other info about shortcode.
Hope this will helps you.
Thanks.
]]>