elderfd / language-weave

Port of Atom extension of the same name. Provides syntax highlighting for Pweave and Weave.jl documents.
MIT License
1 stars 1 forks source link

Q: Can this execute pmd files? #1

Open dsanalytics opened 6 years ago

dsanalytics commented 6 years ago

Thanks for making this available in VSCode. Aside from syntax, can this run pmd files from the command line like pweave can, shown here: http://mpastell.com/pweave/examples/index.html ? E.g. Opening a command prompt in VSC and executing something similar to: pweave -f md2html FIR_designp.pmd to run python code referenced in the pmd and produce an html file?

elderfd commented 6 years ago

Currently this only supports syntax highlighting. I would certainly like it to support building the file without having to open a command line but I don't know when I will get around to doing so. Feel free to submit a pull request if you'd like to implement this functionality.

dsanalytics commented 6 years ago

If there's no execution, then why your package brings many along for the ride only for syntax? I.e., after installing your extension I certainly didn't expect to find a) Julia, b) LaTex Workshop and c) reStructuredText installed without any warnings. I don't use any of those. Why are those needed and can you remove dependencies on them?

elderfd commented 6 years ago

This package supports highlighting for embedded Python and Julia code inside Markdown, LateX and reStructuredText files. Instead of re-implementing highlighting for each of those languages, the package has dependencies on other packages which already define the syntax. Including the dependencies obviously means you pick up some extra packages, but it also means that everything just works out of the box. I could remove the dependencies, but then it would be down to each user to install them (or whichever subset they want) manually.

Possibly the LateX Workshop dependency could be switched out for a more lightweight extension (like https://github.com/ProAdd-ons/vscode-LaTeX-support).

What is the reason for not wanting the dependencies, does it slow down your VSCode significantly?

dsanalytics commented 6 years ago

No noticeable issues - I was just looking to keep things as lean as possible. Thanks.

peacememories commented 5 years ago

Hi, I just stumbled upon your extension while looking for literate programming options for Python. Is executing .pmd scripts (or rather, previewing) still being worked on, or is this extension not being developed anymore? Is there anything I can do to help without knowing too much about how the extension works?

elderfd commented 5 years ago

@peacememories this project is not under active development but neither is it abandoned. I am open to PRs if there is anything you would like to contribute, such as execution of scripts.