We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can you add an option to output the lines number along with the syntax highlighted code?
The text was updated successfully, but these errors were encountered:
There already is :line_numbers: http://coderay.rubychan.de/doc/classes/CodeRay/Encoders/HTML.html
:line_numbers
Sorry, something went wrong.
Is this available as a command line option?
Not yet. If you use the HTML encoder:
coderay file.rb -html
it outputs a whole HTML page with line numbers in a table.
Do you want to output into the terminal? This encoder does not have such an option. UNIX to the rescue:
coderay file.rb | nl
Works great for me :-)
This could be improved with #51 - Improved command line interface.
No branches or pull requests
can you add an option to output the lines number along with the syntax highlighted code?
The text was updated successfully, but these errors were encountered: