Not signed in (Sign In)

Categories

Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorFrederick
    • CommentTimeJan 29th 2007
     permalink

    In some of the snippets in for example the XHTML or the Javascript bundle, there are comments like

    <!-- begin div. --> <div id=""> </div> <!-- end div. -->

    or

    <script type="text/javascript"> // <![CDATA[ function function_name(first_argument) { return true; } // End of function_name // ]]> </script>

    Personally I don’t usually add these types of comments, but I realize some may find them useful. I would rather not have them in the snippets by default though. The CDATA could be good to keep, but I vote to get rid of the others.

    •  
      CommentAuthorFrederick
    • CommentTimeJan 29th 2007 edited
     permalink

    Another thing. When specifying attribute defaults and such, like

    <td class=""></td>

    where class=”“ is a field and when you tab to it, it’s selected – the space before “class” should be selected too, so that you can just press backspace and move on if you want to. Pressing backspace once here leaves one space after “td”, which looks bad. And worse, when you press backspace once more it leaves snippet mode.

    •  
      CommentAuthortstrokes
    • CommentTimeJan 30th 2007
     permalink

    Yeah I agree. I hardly ever use the <!— —> comments in HTML. I’ve never really seen the value
    cause HTML is a markup language and it is meant to be somewhat human readable.
    I also second the idea of taking out the space.

    • CommentAuthori
    • CommentTimeJan 30th 2007
     permalink

    Agreed. There are lots of problems with the default snippets at the moment: brace positioning, indentation, extraneous comments, etc. I must say though, that its hard to find general consensus to these problems.

    • CommentAuthormartincohen
    • CommentTimeJan 30th 2007 edited
     permalink

    I agree,... there are lot of troubles with the snippets. But because we have no hierarchy of bundle maintainers yet, we can just fix them and commit to our repository. Can you guys fix em and send to me, please?

    • CommentAuthori
    • CommentTimeJan 30th 2007 edited
     permalink

    Will do. :)

    Edit: If anyone else is working on the snippets, please leave a message k? Just to avoid redundant work. I’m working on the C/C++ snippets at the moment.
    Edit2: The C/C++ snippets are completed. I’ve also grouped them up into menu categories.

    •  
      CommentAuthorFrederick
    • CommentTimeJan 30th 2007 edited
     permalink

    I’m doing a little work on the Ruby, CSS and Javascript bundles, I might fix some things in the XHTML bundle too. Including some or all of the snippets.

    I’m also working on a theme, called Cylons In The Water.

    • CommentAuthori
    • CommentTimeJan 30th 2007 edited
     permalink

    Oh, for those working on snippets, here’s my Snippets snippet that I made for the Jasmine bundle. Makes it easier when rewriting the snippets.

    Edit: Martin, I’ve sent you the C/C++ snippets :) I think I’ll work on the Java snippets next…