4-31
User
Guide

for

the

Cisco

Application

Networking

Manager

5.2
OL-26572-01
Chapter
4






Using

Application

Template

Definitions
Managing
Application

Template

Definitions
2
Description
Tool
Bar
Editing
tools

that

work

as

follows:


Undo
button—With
each
click,
undoes

the

changes

that
you
made

but

did

not

save,

beginning

with

the

most

recent
change
made.


Redo
button—With

each

click,

redoes
the
changes

reversed

by

the

Undo

button,

beginning
with
the
most
recent
undo
operation.


Fix
Indentation

button—Corrects

any

indentation

errors

in
the
code.


Wrap
with:


If

button—Wraps

the

code

that

you

highlight

with

the

“if”

opening

and

closing

tags

to

create

an

if

block.


For

button—Wraps

the

code

that

you

highlight

with

the

“foreach”

opening

and

closing

tags

to

create

a

foreach
block.
If
you

do

not

hi

ghlight

the

code

t

o

wrap,

ANM

pl

aces

the

If

or

For

bl

ock

at


the

l

ocation

of

the

cursor.


Toggle
Comments
button—Makes

the

code
that

you

highlighted

a

comment.

You

can

use

this

feature

to

add
description
comments

to

sections

of

the

code.

You

can

also

tag

incomplete

code

as

a

comment

until

you

are

ready
to
complete

i

t.

At

t

hat

t

ime,

you

would

highlight

the

commented

code

and

click

Toggle

Comments

again.


Search
text
box—String
to

locate

in

the

code.

The

template

editor
highlights
all

instances

of

the

string.

Use

the
following
associated

t

ools:


Up

button—Moves

to

the

next

instance

of

the

search

string

above

the

currently

highlighted

instance.


Down

button—Moves

to

the

next

instance

of

the

search

string

below

the

currently

highlighted

instance.


Replace
text
box—String
that

is

to

replace

the

search

string

as

follows:


Replace

button—Replaces

only

the

currently

highlighted

occurrence

of

the

search

string.


Replace

All

button—Replaces

all

occurrences

of

the

search

string.
3
Work
Area
Area
where

the

code

is

displayed

and

modified.

The

work

area

includes

the

following

editing

tools:


Code
folding—Allows

you

to

expand

or

collapse

sections

of
code
as

follows:


—Collapses
code

group.


—Expands
code
group.
ANM
hides

these

icons

and

expands

the

code

when

an

error

exists.


Code
auto

complete—ANM

completes

the
code
tag

being

entered

or
displays
a

list

of
possible
options

that

match
what
has

been

entered

so

far.

This

feature

works

for

a

predefined

set

of

elements

only

and

is

not

available

with
every
el

ement

ty

pe.
To
use

this

feature,

begin

entering

the

start-tag

and

then

press

Ctrl

+

Space.

Enter

at

least

one

character

after

the
open
character

(<)

before

pressing

Ctrl

+

Space.

For

example:
<var
-->Press
Ctrl

+

Space
<variable
displayString=""

name=""

type="">
Table
4-5
ANM
Template

Editor

Component

Descriptions

(continued)
Item