arunpatal Posted November 28, 2013 Share Posted November 28, 2013 (edited) Hi, If i have some code to display then i will do like this. <?php highlight_string('<?php echo"Hello World"; ?>') ?> But what if the code is big and content many ' For example <?php highlight_string('<?php echo'Hello World' "Hello World" 'Hello World' "Hello World"; ?>') ?> Is there a function which can auto add \ front of ' which is in highlight_string??? Edited November 28, 2013 by arunpatal Quote Link to comment Share on other sites More sharing options...
objnoob Posted November 28, 2013 Share Posted November 28, 2013 nope. source code needs to have proper syntax, otherwise it can not be understood by the system and will generate an error. while you're writing your code you be making sure you escape the necessary characters to maintain valid syntax. you can also do a precision find/replace to help with existing source code. find/replace can end up backfiring on you if you're unfamiliar, so be careful not to mess everything up. Quote Link to comment Share on other sites More sharing options...
arunpatal Posted November 28, 2013 Author Share Posted November 28, 2013 thanks Quote Link to comment 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.