4 ms·
I like this idea. I created a similar script for myself that extends this idea more into the CI/CD realm. Basically if you have tutorials that need code screen
by iandanforth 5y ago
I like this idea. I created a similar script for myself that extends this idea more into the CI/CD realm.
Basically if you have tutorials that need code screenshots it's nice to avoid much / most manual copy/paste/screen capture etc.
So my script takes a filename and line numbers and outputs a syntax highlighted screenshot of that portion of text.
Why arn't I linking to the script? Well the obvious next step is to extend the above to tie into git such that for minor changes you don't have to think about the line numbers and it just does the right thing. But I never got that working :)