Chikwado Posted October 8, 2015 Share Posted October 8, 2015 How to highlight a file with line number. I have GeSHi syntax highlight but could not run it well GeSHi Link to comment Share on other sites More sharing options...
Ingolme Posted October 8, 2015 Share Posted October 8, 2015 What does your code look like? Link to comment Share on other sites More sharing options...
Chikwado Posted October 8, 2015 Author Share Posted October 8, 2015 (edited) My code are: <?php include_once(geshi.php); $source = '<?php echo "Hello World!"; ?>'; $language = 'php'; $geshi = new GeSHi($source, $language); echo geshi->parse_code(); ?> I have this file I would like to highlight it given each line a number some file Edited October 8, 2015 by Chikwado Link to comment Share on other sites More sharing options...
Ingolme Posted October 8, 2015 Share Posted October 8, 2015 First you need to break the file into lines. All your code is on one line. Link to comment Share on other sites More sharing options...
Chikwado Posted October 8, 2015 Author Share Posted October 8, 2015 These seem to be exactly the cause of unable to highlight and give each line number, I been using online editor with small device. Thanks for advice. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now