Firacode: PHP and PHP shorthand tags.

Created on 5 Nov 2020  路  8Comments  路  Source: tonsky/FiraCode

Please vote or devote it!

image

Most helpful comment

I don鈥檛 think there鈥檚 a meaningful improvement to <? or ?>

All 8 comments

I don鈥檛 think there鈥檚 a meaningful improvement to <? or ?>

I think this format is much more readable mainly if you write template type codes, because

open tag: <?=   
expression: ...
close tag ?>

because there are three blocks

The original format doesn't show these blocks.

I think the second variation is clearly better readable.

image

<?= $var ?>?

If it reads better, just add whitespace. This is not something that should be solved at ligature level.

Ok, and what is the border the ligature level and the whitespace level!? Could you suggest me some documentation about this topic to understand that?

I used this syntax format before, because it was ok, but I write this topic to discuss this possibility.

I don鈥檛 see any advantage making a change which switches away from standard php.

If you want to give focus, use long hand

<?php echo $var; $>

You are trying to solve a problem that doesn鈥檛 exist.

<?=

Is shorthand to use for echoing a variable. If you give space it makes it gives developer suggestion that it鈥檚 just a php open tag and you can do any php command after. Which it doesn鈥檛.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pedrowebcomum picture pedrowebcomum  路  4Comments

whatisaphone picture whatisaphone  路  3Comments

tomByrer picture tomByrer  路  4Comments

ghivert picture ghivert  路  4Comments

magnus-madsen picture magnus-madsen  路  3Comments