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

Tooltip implementation #86

Closed
ShalokShalom opened this issue Jan 14, 2018 · 1 comment
Closed

Tooltip implementation #86

ShalokShalom opened this issue Jan 14, 2018 · 1 comment

Comments

@ShalokShalom
Copy link
Contributor

Hi there - I consider implementing the tooltip engine into Gitea - is this an own implementation?

How do you recommend to implement the whole stuff, so including syntax highlighting?

@tpetricek
Copy link
Member

The F# Snippets web site is using (fairly directly) the F# Formatting library for colorization and tool tips. The documentation shows this: https://fsprojects.github.io/FSharp.Formatting/codeformat.html

In F# Snippets, we use it here: https://github.com/fssnippets/fssnip-website/blob/master/code/common/parser.fs#L69

The main tricky thing that fssnip.net does in addition to using the simple F# Formatting call is that we also download NuGet packages and reference the extracted files (so that you get tooltips for 3rd party libraries). That would be an awesome feature to have for Gitea, but it's a bit more tricky, I suppose!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants