sandrulis Posted October 20, 2011 Report Share Posted October 20, 2011 kāda funkcija vai kaut kas cits ir jālieto lai panāktu lai tekstu rādā kā kodu? tipa viss tas teksts ar noteiktajām krāsām (tipa kā notepad2, gan jau arī kur citur) Quote Link to comment Share on other sites More sharing options...
daGrevis Posted October 20, 2011 Report Share Posted October 20, 2011 Ja vajag vienkārši kodu parādīt: echo "echo \"Hello!\";"; // or: echo 'echo "Hello, world!"'; Nu skaties, lai viss būtu "escape'ots". Funkcija htmlspecialchars() arī var būt noderīga! ;) Ja gribi iekrāsotu sintaksi, tad: http://alexgorbatche...taxHighlighter/ http://code.google.c...taxhighlighter/ ...utml.. Quote Link to comment Share on other sites More sharing options...
sandrulis Posted October 20, 2011 Author Report Share Posted October 20, 2011 danke, paldies tas ko gribēju par to iekrāsošanu Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted October 20, 2011 Report Share Posted October 20, 2011 http://php.net/manual/en/function.highlight-string.php bet nu vispār jau vairāk kaut kas šāds Quote Link to comment Share on other sites More sharing options...
daGrevis Posted October 20, 2011 Report Share Posted October 20, 2011 @nemakuphp Es tak jau linkus iedevu. :( Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted October 20, 2011 Report Share Posted October 20, 2011 Tu vienkārši paspēji ātrāk, kad spiedu Post, nekas vēl nebija, tā gadās, kad atver vairākus tabus un visus pēc kārtas lasa. 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.