Snippet placeholders Snippet (programming)




1 snippet placeholders

1.1 placeholder identifiers
1.2 placeholder duplication
1.3 placeholder transformation





snippet placeholders

placeholders elements within snippet left supplied user or other external process. values placeholders not determined until text of snippet inserted during editing session.


placeholders may have special markup syntax allows editor identify boundaries of placeholders relative other text in current edit buffer.


other applications employ graphical user interfaces , modal dialog boxes allow user enter 1 or more values supplied placeholders.


placeholder identifiers

placeholders indicated special character or sequence of characters distinguish them rest of snippet text. systems allow snippet placeholders named identifiers. identifiers may useful supporting such features placeholder duplication or placeholder transformation.


the following example uses identifiers first_name, last_name, , item:



placeholder duplication

this allows user indicate value supplied 1 placeholder should replicated in multiple places, relative entire text of programmable snippet. in previous example, named placeholder first_name example of usage.


placeholder transformation

this allows user indicate 1 or more values supplied placeholder should replicated , transformed in other places within text of programmable snippet. example, user may supply document title in 1 part of snippet, , specify document title should repeated in other places, first instance being all-uppercase , every other instance being lower-case.







Comments

Popular posts from this blog

Ice Age List of Ice Age characters

Beiyang clique in power .281911.E2.80.9315.29 Beiyang Army

R172 .282011.E2.80.93Present.29 Mercedes-Benz SLK-Class