flyhoney Posted December 7, 2008 Share Posted December 7, 2008 I have a simple suggestion to improve posting. It would be awesome if there was an icon in addition to the [.code] tags icon that automatically generated code tags with opening and closing php tags within. Since 95% of the code posted here is PHP, it would encourage people to use php tags so that their code is highlighted. It would also save the step of having to write <?php ?> every time you need to use [.code] tags. So it would essentially work just like the code tags icon except it would generate: [.code]<?php ?>[./code] Quote Link to comment https://forums.phpfreaks.com/topic/135962-automatic-php-code-tags/ Share on other sites More sharing options...
Daniel0 Posted December 7, 2008 Share Posted December 7, 2008 That'll not happen. tags are also used for HTML, CSS, Javascript, regex, SQL, etc. here. You may use the [php] tag if you wish PHP syntax highlighting without using the PHP opening tag. Quote Link to comment https://forums.phpfreaks.com/topic/135962-automatic-php-code-tags/#findComment-708753 Share on other sites More sharing options...
flyhoney Posted December 7, 2008 Author Share Posted December 7, 2008 I had no clue the [.php] tag existed. That solves everything. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/135962-automatic-php-code-tags/#findComment-708763 Share on other sites More sharing options...
.josh Posted December 7, 2008 Share Posted December 7, 2008 oh, I thought you were asking for an icon to be added to the list of icons you can click, for the already existing [ php ] .. [ /php ] tag. To that, I would point you to smf's suggestion board. Quote Link to comment https://forums.phpfreaks.com/topic/135962-automatic-php-code-tags/#findComment-708764 Share on other sites More sharing options...
flyhoney Posted December 7, 2008 Author Share Posted December 7, 2008 Yeah, that is basically what I was asking, I didn't know about the php tags. Quote Link to comment https://forums.phpfreaks.com/topic/135962-automatic-php-code-tags/#findComment-708771 Share on other sites More sharing options...
xtopolis Posted December 9, 2008 Share Posted December 9, 2008 What about the same [select] mod for the php tags like the code tags have? Not urgent, just very handy, even with [php ] being less widely used. CODE test PHP test Quote Link to comment https://forums.phpfreaks.com/topic/135962-automatic-php-code-tags/#findComment-710172 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.