JunoLab / language-weave

Atom syntax highlighting for Weave.jl and Pweave documents. Currently supports markdown input formats.
https://atom.io/packages/language-weave
MIT License
21 stars 9 forks source link

Hydrogen cannot detect the current code block in pweave md. #6

Open duzaichuan opened 7 years ago

duzaichuan commented 7 years ago
screen shot 2017-10-03 at 14 34 59

Hydrogen can only run the line that cursor in, but not the current block. Also similar problem happens when the block title is selected.

screen shot 2017-10-03 at 14 33 34 screen shot 2017-10-03 at 14 25 42

Can these be fixed?

Thanks~

kylebarron commented 6 years ago

It's highly unlikely that could be fixed. I believe that Hydrogen uses the language scopes to determine which language you're trying to run. Since your selection begins outside of the scope named embedded.python, Hydrogen doesn't know what you're trying to do.

If you select only the inside of the block, it should work.