XEmmet configuration

Hello,

Emmet on IDE 9.0 works fine.
For example: CSS
pb[Emmet] -> padding-bottom:
mt[Emmet] -> margin-top

Now on 10.x in XEmmet I got:
pb[Emmet] ->
p[Emmet] -> padding:

What had happened? I want just the statdard Emmet abbreviations.

There is link to Emmet customization on Defman21/Xemmet. I didn’t find any snippets.json. Is this actual?

M.

What version? Open the bottom pane, Console, execute:

require("xemmet").__debug__();

Then share your log file.

This file should be in ~/.komodoide/10.1/ but unless you want to add your own abbreviations - you don’t need it.

Looks like console doesn’t work, cannot enter some text there.

Windows 7x64, Komodo IDE Komodo IDE, version 10.1.1, build 89474, platform win32-x86.
Built on Thu Sep 01 14:27:01 2016.

Were should I place it on Windows? I think somewhere in profile folder. Threre are too short list of abbreviatons in XEmmet, I need to modily it up to the native Emmet config.

BTW, one more problem. I typed:

padd[Emmet] -> padding:

What is ?..

There’s an input at the bottom.

In your profile folder.

Yes, I found it, tried to input text. I cannot please cursor there or type anything. That looks like similar to read-only input field on web. Click is a available, but not any feedback.

Oh. Create an userscript with the same line and run it, then expand an abbreviation and post your log file there.

i found that it’s necessaty to enter the command at the bottom line of console, not in the main console windows like in regular terminal. No any output:

Command output: encoding problems.

I created userscript and run it, but cannot find the log … :frowning:

Help - troubleshooting - view log file

I tried to execute userscript and post the coomand to console also. Looks like nothing appeared in the log.

[2016-11-06 16:35:32,423] [DEBUG] xemmet: Listener[global]: TAB pressed
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand]: raw string before caret:             fsz
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand]: possible abbreviation before caret:             fsz
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_isAbbr: args = {"0":"            fsz","1":"html5"}
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_isAbbr: extracted abbr = fsz; success!
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand; success]: inserting abbreviation
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_expand args = {"0":"fsz","1":"html5"}
[2016-11-06 16:35:32,427] [DEBUG] xemmet: @_expand return = <fsz>${0}</fsz>
[2016-11-06 16:35:32,427] [DEBUG] xemmet: @_prepare args = {"0":"<fsz>${0}</fsz>"}
[2016-11-06 16:35:32,428] [DEBUG] xemmet: @_prepare return = <fsz>[[%tabstop0:]]</fsz>
[2016-11-06 16:35:32,428] [DEBUG] xemmet: Listener[tab-expand; success]: to insert: <fsz>[[%tabstop0:]]</fsz>; abbr(fsz).len = 3

Please expand a css abbreviation (mb for example) and post the log again.

mb - margin-bottom
mt - margin-top
fsz - font-size

[2016-11-06 16:35:32,423] [DEBUG] xemmet: Listener[global]: TAB pressed
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand]: raw string before caret:             fsz
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand]: possible abbreviation before caret:             fsz
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_isAbbr: args = {"0":"            fsz","1":"html5"}
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_isAbbr: extracted abbr = fsz; success!
[2016-11-06 16:35:32,424] [DEBUG] xemmet: Listener[tab-expand; success]: inserting abbreviation
[2016-11-06 16:35:32,424] [DEBUG] xemmet: @_expand args = {"0":"fsz","1":"html5"}
[2016-11-06 16:35:32,427] [DEBUG] xemmet: @_expand return = <fsz>${0}</fsz>
[2016-11-06 16:35:32,427] [DEBUG] xemmet: @_prepare args = {"0":"<fsz>${0}</fsz>"}
[2016-11-06 16:35:32,428] [DEBUG] xemmet: @_prepare return = <fsz>[[%tabstop0:]]</fsz>
[2016-11-06 16:35:32,428] [DEBUG] xemmet: Listener[tab-expand; success]: to insert: <fsz>[[%tabstop0:]]</fsz>; abbr(fsz).len = 3
[2016-11-06 16:43:11,890] [ERROR] koCodeIntel:     ERROR: lang_xml.py: async_eval_at_trg:
    Internal error: Unknown UDL-based XML completion type: u'defn'
[2016-11-06 16:43:48,700] [DEBUG] xemmet: Listener[global]: TAB pressed
[2016-11-06 16:43:48,703] [DEBUG] xemmet: Listener[tab-expand]: raw string before caret:             mt
[2016-11-06 16:43:48,704] [DEBUG] xemmet: Listener[tab-expand]: possible abbreviation before caret:             mt
[2016-11-06 16:43:48,706] [DEBUG] xemmet: @_isAbbr: args = {"0":"            mt","1":"html5"}
[2016-11-06 16:43:48,706] [DEBUG] xemmet: @_isAbbr: extracted abbr = mt; success!
[2016-11-06 16:43:48,707] [DEBUG] xemmet: Listener[tab-expand; success]: inserting abbreviation
[2016-11-06 16:43:48,707] [DEBUG] xemmet: @_expand args = {"0":"mt","1":"html5"}
[2016-11-06 16:43:48,720] [DEBUG] xemmet: @_expand return = <mt>${0}</mt>
[2016-11-06 16:43:48,721] [DEBUG] xemmet: @_prepare args = {"0":"<mt>${0}</mt>"}
[2016-11-06 16:43:48,723] [DEBUG] xemmet: @_prepare return = <mt>[[%tabstop0:]]</mt>
[2016-11-06 16:43:48,723] [DEBUG] xemmet: Listener[tab-expand; success]: to insert: <mt>[[%tabstop0:]]</mt>; abbr(mt).len = 2
[2016-11-06 16:45:05,565] [DEBUG] xemmet: Listener[global]: TAB pressed
[2016-11-06 16:45:05,568] [DEBUG] xemmet: Listener[tab-expand]: raw string before caret:             mb
[2016-11-06 16:45:05,568] [DEBUG] xemmet: Listener[tab-expand]: possible abbreviation before caret:             mb
[2016-11-06 16:45:05,569] [DEBUG] xemmet: @_isAbbr: args = {"0":"            mb","1":"html5"}
[2016-11-06 16:45:05,569] [DEBUG] xemmet: @_isAbbr: extracted abbr = mb; success!
[2016-11-06 16:45:05,569] [DEBUG] xemmet: Listener[tab-expand; success]: inserting abbreviation
[2016-11-06 16:45:05,569] [DEBUG] xemmet: @_expand args = {"0":"mb","1":"html5"}
[2016-11-06 16:45:05,578] [DEBUG] xemmet: @_expand return = <mb>${0}</mb>
[2016-11-06 16:45:05,578] [DEBUG] xemmet: @_prepare args = {"0":"<mb>${0}</mb>"}
[2016-11-06 16:45:05,578] [DEBUG] xemmet: @_prepare return = <mb>[[%tabstop0:]]</mb>
[2016-11-06 16:45:05,578] [DEBUG] xemmet: Listener[tab-expand; success]: to insert: <mb>[[%tabstop0:]]</mb>; abbr(mb).len = 2

These won’t work in a html file. Are you trying to expand them in a <style> tag?

Yes, inside style tag

Hmm. Thats a bug in Xemmet. I’ll fix it ASAP :slight_smile:

Great, thanks, I hope that I helped you a little in XEmmet testing :slight_smile :slight_smile:

Abbreviation mb, mt, fsz working ok in pure CSS files.

Can I reassing XEmmet’s wrap from Ctrl+Tab to something else?
I’m using it for next file/tab. Standard shortcut for the most of editors?
Working ok in XEmmet disabled in Addons (Legacy) only.

You can disable line wrap in prefs - smart editing. Then it will work only with selections.

Next time please use github issues to report about issues :slight_smile: