Not signed in (Sign In)

Categories

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

    • CommentAuthorDeM
    • CommentTimeJan 27th 2008
     permalink
    Hy i write a XHTML 1.0 (Strict, Transational, Frameset) bundle, and i have some problem with itGrammar and itSnippet files:

    1. I write syntaxes into itGrammar files but i dont want to display allt itGrammar files in intype
    Example i write attribute hilight, but dont give the file title, key_equivalent value, but intype shows these files as "Untlilited item" and dont want see these items in intype, is for this a keyword to hidde them or dont show these items?

    2. When i create multiple snippets
    Example:
    {
    title : 'XHTML 1.0 tag <a> 1'
    tab_trigger: 'a'
    scope : 'source.xhtml_1_0_S, source.xhtml_1_0_T, source.xhtml_1_0_F'
    content : '<a $1>$2</a>$0'
    }

    and

    {
    title : 'XHTML 1.0 tag <a> 2'
    tab_trigger: 'a'
    scope : 'source.xhtml_1_0_S, source.xhtml_1_0_T, source.xhtml_1_0_F'
    content : '<a ... $1>$2</a>$0'
    }

    then in intype is this two items so sorted:
    XHTML 1.0 tag <a> 2 | 1
    XHTML 1.0 tag <a> 1 | 0

    when i have mor than 10 a snippets then
    XHTML 1.0 tag <a> 2 | 1
    XHTML 1.0 tag <a> 3 | 2
    XHTML 1.0 tag <a> 4 | 3
    ..........
    XHTML 1.0 tag <a> 10 | 9
    XHTML 1.0 tag <a> 1 | 0
    XHTML 1.0 tag <a> 11 | a
    XHTML 1.0 tag <a> 12 | a
    ..........

    I use Hungarian keybord, and 0,1,2,.... where better :)

    (Sorry for bad english, i learned German)
    •  
      CommentAuthordflock
    • CommentTimeJan 29th 2008
     permalink

    Why have 10 different snippets for inserting <a> tags?

    Can you upload your current files somewhere so we can have a look?

    •  
      CommentAuthordflock
    • CommentTimeJan 30th 2008
     permalink

    DeM: <a> tag was a example.
    Here are the files: http://d-soft.extra.hu/intype/example10.zip
    These are for phpdocumentator tab_trigger is ‘@’ for all.
    For the other problem are here the files: http://d-soft.extra.hu/intype/XHTML1.0.itBundle.zip
    All itGrammar files are shown in editor but i dont want that.

    I’m not an expert on this by any means, but the reason you’re getting all the untitled items is that you’ve got loads of grammar files – like ‘xhtml_1.0_attribute_accesskey.itGrammar’ which don’t have titles on – this is where the untitled entries are coming from.

    I see what you’re trying to do – have common bits of grammar split out into separate files and include them in the 3 main grammar files:
    '03_xhtml_1.0_Frameset.itGrammar' '01_xhtml_1.0_Strict.itGrammar' '02_xhtml_1.0_Transitional.itGrammar'
    as needed – which seems sensible, I guess.

    The trouble is, InType is displaying all these common bits of Grammar from all the little itGrammar files in the Bundles Menus, when you only want it to display the 3 main ones. It still does this even if you completely remove the title and key equivalent lines from the little itGrammar files:
    title: '' key_equivalent: ''

    Apart from not including the separate files – and collapsing your grammar files into just the 3 main ones by duplicating the included bits into the 3 main files, I don’t know of a way round this – does anyone else???