Firacode: Php tags

Created on 21 Dec 2015  路  9Comments  路  Source: tonsky/FiraCode

Please add php tags.
Opening ones:
<%
Ending ones:
?>
()?>
)?>
%>

Thanks in advance.

suggestion

Most helpful comment

<?php = 馃悩

All 9 comments

+1 on this. However, Who really uses <% %> for PHP? But this is still useful in a ton of other script templating languages :)

There's already a request on part of those tokens in #75

I posted some examples in #75. I relly have no idea for <?php and I don't think ()?> or )?> needs to be made. What about ;?>, :?> or even ()?

BTW: You really shouldn鈥檛 use <% for php anymore, they鈥檙e deprecated since a long time and removed in php7.

Maybe () would be useful for many other cases, such as [] already is? Just take care to not become zero haha
<?php would be enough if <? had a ligature, I think.
;?> sounds a bit weird for me (I avoid semicolons entirely on single-command tags such as <? endif ?>.
Finally, :?> sounds a bit weird since the colon is related to the command, not the tag, as in <? if ($stuff): ?> (sounds even clearer having a space between both, in my view). This is also true for )?> - it makes more sense to consider the parenthesis part of what's before it than what's after.

A couple of thoughts after reading other issues:

  • () should be avoided just like [] is gone now
  • ;?> and :?> should also be separate as there are two separate concerns there: the command and closing the tag - and the font is about joining together stuff we read as a whole thing, right? Like the command, or the tag. not both together.

So what's left from the list, supposing these ideas are ok:
<?
<?=
<?php, if there's a nice way to ligate those together
?>
<% and %> for other scripting and templating languages

<?php = 馃悩

If this one <?= is accepted, we could use <%= which is basically the same in aspSyntax php, and also for template (as underscore use).

News on this one?

No news :) I鈥檓 struggling with the graphics. It鈥檚 hard to make ? in combination with anything look good.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

whatisaphone picture whatisaphone  路  3Comments

Igorgro picture Igorgro  路  3Comments

aryairani picture aryairani  路  3Comments

Gang-Yang picture Gang-Yang  路  3Comments

Photonico picture Photonico  路  3Comments