redbullmarky Posted January 21, 2007 Share Posted January 21, 2007 Tis probably a bit more picky than anything, but I think it'd be good if the code highlighting when posting code picked up on short opening tags (<?) as well as normal (<?php) ones.[code]<?echo 'an example of unhighlighted code. Though Im still valid PHP!!';?>[/code][code]<?phpecho 'wahey look at me all colourful and stuff!';?>[/code]reason being, i've seen a handful over the last few days where there's been plenty of HTML mixed with PHP which has all displayed in plain black text. it's cool on short snippets, but when code examples are longer.... Quote Link to comment https://forums.phpfreaks.com/topic/35119-php-short-tags-code-highlighting/ Share on other sites More sharing options...
Philip Posted January 21, 2007 Share Posted January 21, 2007 Well, I agree with you. I was a little confused on why they wouldn't highlight the short tags when I first started posting here. I wouldn't mind seeing this happen, since it would make things easier to read. And I know there are going to be a few people saying don't use short tags blah blah... ([url=http://www.corephp.co.uk/archives/19-Prepare-for-PHP-6.html]They are still going to be in php6... so hush.[/url]) ;) Quote Link to comment https://forums.phpfreaks.com/topic/35119-php-short-tags-code-highlighting/#findComment-165803 Share on other sites More sharing options...
Nameless12 Posted January 21, 2007 Share Posted January 21, 2007 Does anyone know short tags are no longer default in php5.20? Quote Link to comment https://forums.phpfreaks.com/topic/35119-php-short-tags-code-highlighting/#findComment-165809 Share on other sites More sharing options...
Daniel0 Posted January 21, 2007 Share Posted January 21, 2007 [quote author=Nameless12 link=topic=123396.msg509976#msg509976 date=1169415089]Does anyone know short tags are no longer default in php5.20? [/quote]It is on by default in PHP5.2.Also, I do think that code highlighting on code with short tags would be a good idea. Quote Link to comment https://forums.phpfreaks.com/topic/35119-php-short-tags-code-highlighting/#findComment-165841 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.