ryancramerdesign / ProcessHannaCode

Easily insert any complex HTML, Javascript or PHP output in your ProcessWire content by creating your own Hanna code tags.
24 stars 9 forks source link

php save&test error messages yield wrong line numbers #25

Open dominiklenne opened 3 years ago

dominiklenne commented 3 years ago

This is not something big, but may help people if fixed. The error message line numbers are those in the saved php snippet. The editor line numbers are those minus 2 because the lines

<?php namespace ProcessWire; if(!defined("PROCESSWIRE")) die("no direct access");

are not visible in the hanna editor.

ryancramerdesign commented 3 years ago

@dominiklenne I just tested here but the line number matched up for me. Can you paste in the Hanna Code where you are observing the wrong line number? Thanks.