SourceForge has been redesigned. Learn more.
Close

Content Assist - Templates

2009-09-05
2012-09-14
  • Mihael Schmidt

    Mihael Schmidt - 2009-09-05

    Hi,

    I'm just getting in to the Templates task. I would like to know which templates you would like to see? What are standard code structures you use?

    Examples:

    do while loop:
    dow (${expression});
    ${cursor}
    enddo;

    list iteration:
    ${entryPointer} = list_getNext(${list});
    dow (${entryPointer} <> *null);
    ${cursor}
    ${entryPointer} = list_getNext(${list});
    enddo;

    Any more ideas?

    Regards

    fist (mihael)

     
  • bconolly

    bconolly - 2009-10-01

    All the ones that are in RDi ;)

    That is:

    • if
    • for

    On a related note, it'd be great to be able to inset "snippets"
    whereby you can add in standard code / comment blocks etc.

    BC

     
  • Mihael Schmidt

    Mihael Schmidt - 2009-10-02

    I have noticed the smiley but for those who haven't: I'm definitly not going
    to add all the RDi templates to the editor. Most people don't use them at all
    and all the SQL Free-Form templates are not really useable as they are. I
    think SQL differs so much from person to person that it does not make sense to
    add SQL templates.

    Snippets: Snippets in RDi are a poor excuse for an incomplete support of
    templates. Why are templates only working in /free in RDi?! Almost all things
    can also be done with templates. That said I don't think that I will introduce
    snippets in the editor. Standard code can easily be added via templates. No
    need for snippets there.

     
  • Mihael Schmidt

    Mihael Schmidt - 2009-10-02

    And for those who do not know: templates are extensible. Means that you can
    define your own templates or modify existing ones.

     

Log in to post a comment.