srusskih / SublimeJEDI

awesome Python autocompletion with SublimeText
MIT License
938 stars 109 forks source link

Autocomplete python code blocks in a markdown file? #170

Closed shaunpatel closed 9 years ago

shaunpatel commented 9 years ago

Is it possible to modify this to autocomplete within fenced python code blocks within a markdown file?

srusskih commented 9 years ago

it's depends on source file scope. if python code block can be somehow detected with "ST scope", then it's possible

You can try to experiment with https://www.sublimetext.com/docs/3/api_reference.html#sublime.View scope_name(point) to detect if python code block has a specific scope to enable completion there