Sublime Forum

[BUG] enter key problem

#1
<?php
?><!DOCTYPE >

Try to press enter key after php tag is closed. It didn`t work. Only if you have a space between ?> and doctype

0 Likes

Zen Coding ( CSS Snippets )
#2

Stange, work fine for me (version: 2080 windows x64 channel: dev)
Do you have any plugin installed ?

0 Likes

#3

ZenCoding, i`ll reinstall editor.

0 Likes

#4

Just tried on another instance of ST2 with ZenCoding and hit the issue with this error:

Traceback (most recent call last): File ".\sublime_plugin.py", line 249, in run_ File ".\sublimezen.py", line 120, in wrapper File ".\sublimezenplugin.py", line 180, in run File ".\zencoding\__init__.py", line 75, in run_action File ".\zencoding\actions\basic.py", line 307, in insert_formatted_newline TypeError: 'NoneType' object is unsubscriptable
Look like a bug in ZenCoding, you better raise this issue to the ZenCoding post topic.

0 Likes

#5

A quick fix:
In the file:
\Sublime Text 2\Packages\ZenCoding\zencoding\actions\basic.py

change line 307 from:

if pair[0] and pair[1] and pair[0].type == 'tag' and pair[0].end == caret_pos and pair[1].start == caret_pos:

to:

if pair and pair[0] and pair[1] and pair[0].type == 'tag' and pair[0].end == caret_pos and pair[1].start == caret_pos:

sublimator will probably resolve this issue quickly.

0 Likes

#6

Good. Thanks.

0 Likes