I got it :)
I tried to make this package for Atom and it works fine.
Also think the orginal snippets i've shared above works fine in sublime,
i've just tried it.
if someone found more packages can help within developing canvas apps
please post it here :)