-
Notifications
You must be signed in to change notification settings - Fork 153
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
template comments #64
Comments
for consistency, perhaps, if a line starts with; %COMMENT% <-- a vim-template comment, this line will be ignored and for block-comments; %COMMENT_START% anything on this line will be ignored |
Hmm. What is the use case of this? Do you have templates that are so complex that they need documentation? I would hope that the template files are readable as is. |
Here's one: a template specific modeline. # vim: foldlevel=3 %COMMENT_START% # vim: filetype=txt %COMMENT_END% (caveat: I don't know how to use modelines very well ;-) |
Another use-case might be this: %COMMENT_START$------------------------------- | This is a vim-template template | | http://github.com/aperezdc/vim-template | | ---- | | Licensed under the BlaBlaBlaPublic License | | http://licenses.com/BBBP/ | | --- | | Author: Edgar Allen Poe | | --- | | This template designed for: vimwiki diary | | | | and requires: | | | %COMMENT_END%--------------------------------- |
Probably matching comment start/end pairs would end up in some complex code. Personally I would prefer to only support single-line comments. I am not so sure about what would be the best character for commenting. From the less usual line-comment characters, probably
This would also have the nice property that matches lines can be completely deleted, and there is no need to preserve the content present before |
Is there some way that a template file could have comments, that were there for development or explanation of the template, but that was never translated to the generated file.
either a vim-style comment (which might not work great for vim-files where the commented part is desirable)
or something hopefully unique to vim-template, like
or maybe a block-comment style, like this;
The text was updated successfully, but these errors were encountered: