I'm using someones PHP file. And it has text like:
<html>
... regular HTML
{% if (some condition){
<another regular html tag>
</another regular html tag>
}%}
</html>
And I don't get it if these {% tags %} are javascript or PHP, or something else? thx.
It is some templating language. Most likely a server-side one, i.e. one that is based on PHP.
Looks like a template to me. The {%
and %}
is the templating's system of identifying where it has to do its work.
It can think of two reasons:
User might have changed "<?" to "<%"
It is a template language