oracle/opengrok

Can opengrok provide a code snippet function

Open

#3,015 opened on Jan 8, 2020

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Java (747 forks)batch import
UIenhancementhelp wanted

Repository metrics

Stars
 (4,060 stars)
PR merge metrics
 (Avg merge 1d 22h) (17 merged PRs in 30d)

Description

Is your feature request related to a problem? Please describe. I want to add code snippet in Wiki and Confluence page, but it always add a whole file.

like: url is https://jcat-opengrok/opengrok/snippet/p1/path/Cat.java#10-20 the output only include lines from 10 to 20. No other things. no head.

Describe the solution you'd like add a function: snippet.

Describe alternatives you've considered https://jcat-opengrok/opengrok/xref/p1/path/Cat.java#10-20

Additional context Used in the other tools. or use in Html file, for example in iFrame.

Contributor guide