Would you be interested in forking this project on GitHub and submitting this as a PR?
https://github.com/dflydev/embed-github-gist
@dflydev I’m not sure that’s the best way to do it, so I’ll just let you use the diff above if you want. Plus, it’d be great if you could make an option to have the long lines wrap while you’re at it, if it’s not too much trouble.
Also, it seems like the vertical scroll bar is not in the right place with my patch – you need to scroll all the way down to see the horizontal one if the lines are too long.
OK, fixed the vertical scrollbar and updated the gist.
Not really sure how to get text wrapping to work though. Check it out on this example: http://www.androidpolice.com/2012/10/09/heres-whats-new-in-android-4-1-2-at-the-low-level-developer-commit-logs.
I’m not sure how wise it would be to do anything with the text wrapping. Even if you visit the gist in its raw form at https://gist.github.com/3861583 you’ll see that there is no text wrapping.
Thanks for the updated gist. I assume that that blog is running your patched version of this plugin?
Correct, it’s running the latest version.
Well, wrapping would be nice, it’s really not very friendly not to wrap long lines for narrow embeds. If there’s any way at all, it’d be great to at least try.
Hi @dflydev,
I’ve updated the height code for the latest version of the plugin in trunk . Can you please integrate https://gist.github.com/3200265 so that it stops breaking with updates?
Thank you.