Closed djsutherland closed 6 years ago
pug-plugin-debug-line already outputs data-pug-file
, data-pug-line
, data-pug-column
for each HTML entity, so that's solved.
Now need the thing in bin/serve
. (Should probably write that as a separate package....)
Merged. 🎆
Probably way more work than it's worth, but would be pretty cool to have SyncTeX-like searches between the source and the website.
Either direction probably requires putting pug line numbers (or similar) on html entities; not sure if this is possible without lots of changes to the pug engine, but might be.
Once that's there, would probably need
bin/serve
to run another livereload-like channel listening for messages to either have the server process runsubl
/whatever command for reverse search, or have the client runReveal.sync
for forward search....