Earlier versions of lampp had endforeach in grey in Kate; with the latest xampp version (7.3.8) 'each' is red and underlined. This is using the colon version of foreach. Has foreach/endforeach changed or is my coding faulty somewhere?
I am a keen amateur. Substituting curly brackets for ':' and endforeach works OK. I am just curious as to why Kate is doing this.
<select name="startrats[]"><?php
foreach ($startrats as $startrat): ?>
<option value="<?php htmlout($startrat); ?>"<?php
if ($startrat == $chunks[$i][3] echo 'selected="selected"';
?>><?php htmlout($startrat); ?>
</option>
<?php endforeach; ?>
</select>
No error messages. Works OK, but why the quirk in Kate?