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

Already on GitHub? Sign in to your account

Suggestion: closure comment #14

bitbonsai opened this Issue Apr 16, 2010 · 4 comments


None yet
3 participants

In elements as div, ul, etc its a good practice to comment where your tag ends (because of indentation):


<div id="test">
    Some Content
</div> <!-- #test -->

<div id="test" class="my-cool-class">
    Some Content
</div> <!-- #test .my-cool-class -->

<div id="parent" class="my-cool-class">
    <div id="child">
        Some Content
    </div><!-- #child -->
</div> <!-- #parent .my-cool-class -->

What do you think?




rstacruz commented Apr 18, 2010

This is actually an undocumented feature :)
If you're using Vim, add these to ~/.vimrc:

let g:sparkupArgs = '--no-last-newline --end-guide-format="/\%s" --end-guide-newline=0'

This adds end comments on all elements with an ID.


rstacruz commented Apr 18, 2010

Closing, as this is already implemented.

Nice, thanks. What about textmate?

rodi01 commented Oct 27, 2010

"'no-last-newline': True" option doesn't seem to work in Textmate. It always adds the comment on a new line

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment