Added crayon syntax highlighter support

5.43K viewsThemesfeature Update
1

I have implemented the crayon syntax highlighter support in AnsPress editor, now you can easily add codes to question and answer.

Make sure to read this How to enable code button and syntax highlighter

Some examples:

public function check_recaptcha()
{
	$recaptcha = new \ReCaptcha\ReCaptcha(ap_opt('recaptcha_secret_key'));
	$resp = $recaptcha->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']);
	
	if ($resp->isSuccess())
		return true;

	return false;
}
commented

Link in the post is not working

0

Can i get some support on this ? I can’t make it work. Following also the Blog post here, i fail.

Thanks