Skip to content
New issue

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

Line highlight #131

Open
maxfie1d opened this issue Jul 12, 2017 · 3 comments
Open

Line highlight #131

maxfie1d opened this issue Jul 12, 2017 · 3 comments

Comments

@maxfie1d
Copy link

Is there any way to add highlights to lines of code on searchcode page?

In GitHub, we can add line highlights by adding a parameter like #L6-L10 to code URL.

https://github.com/boyter/searchcode-server/blob/master/pom.xml#L6-L10

image

If line highlight is not available, I would prefer one.

Thank you.

@boyter
Copy link
Owner

boyter commented Jul 12, 2017

Its one of those things I look at every now and then thinking it should be easy to implement. Turns out it never is because of the syntax highlighter that is used.

Something that I should look into more seriously at some point, unless of course someone feels like providing some code to do it.

@maxfie1d
Copy link
Author

Thanks for your quick reply.

I see what the problem is. I will send a PR if I manage to implement the line highlighting feature.

@boyter
Copy link
Owner

boyter commented Jul 14, 2017

No worries at all. Always happy to take in a PR if you do get a solution going.

@boyter boyter added this to TODO in Release 1.3.13 Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants