Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments for weave.jl script format #299

Open
cnrrobertson opened this issue Jul 17, 2022 · 0 comments
Open

Comments for weave.jl script format #299

cnrrobertson opened this issue Jul 17, 2022 · 0 comments

Comments

@cnrrobertson
Copy link

Weave.jl can use either a markdown (.jmd) or script (.jl) format. When using the script format, any comment line written as #' or #%% is considered a "document" line as seen here.

When writing document lines in the script format, it is very convenient to have #' automatically inserted after pressing enter or entering insert mode with 'o' instead of the usual #. This can be accomplished by changing the filetype comments option from:

setlocal comments=:#

to

setlocal comments=:#',:#%%,:#

in

setlocal comments=:#
.

If this seems like a reasonable addition, I'm happy to submit a PR. It's easy enough to do individually, but I thought it might be useful to the community as a whole.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant