Sublime Forum

Auto Complete + Snippet + Attributes PHP

#1

Hello, what’s up?

In this code:

			<div class="clearfix">
				<?php echo $this->Form->label('usuario_id', 'Usuário') ?>
				<div class="input ">
					<?php echo $this->Form->input('usuario_id', array('type' => 'textarea', 'class' => 'span16')) ?>
				</div>
			</div>

When I try expand move to next edit area (next is span16 - because this is generate by snippet (ST2))…

snippet

<div class="clearfix">
	<?php echo \$this->Form->label('${1:atributo}', '${2:label}') ?>
	<div class="input ${3:classe}">
		<?php echo \$this->Form->input('${1:atributo}', array('type' => '${4:textarea}', 'class' => '${5:span16}')) ?>
	</div>
</div>

ST2 generate this for me (and not move to the next change area):
textarea + Tab = 'xml_set_external_entity_ref_handler(parser, handler)'

			<div class="clearfix">
				<?php echo $this->Form->label('usuario_id', 'Usuário') ?>
				<div class="input ">
					<?php echo $this->Form->input('usuario_id', array('type' => 'xml_set_external_entity_ref_handler(parser, handler)', 'class' => 'span16')) ?>
				</div>
			</div>
0 Likes