Home Download Buy Blog Forum Support

Dev Build 2155

Dev Build 2155

Postby jps on Tue Dec 27, 2011 11:54 am

Dev Build 2155 is out now, correcting an auto complete regression in 2154, and adding support for completions in HTML.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2155 /Add multi language support html

Postby PIAOYIDIAN on Tue Dec 27, 2011 12:28 pm

jps wrote:Dev Build 2155 is out now, correcting an auto complete regression in 2154, and adding support for completions in HTML.


Need to modify the \ Data \ Packages \ HTML \ html.sublime-snippet
..................................................................................................................................................................
Modify the code:
<snippet>
<content> <! [CDATA [<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8; charset=GB2312; charset=GB5">
<title> $ 1 </ title>
</ head>
<body>
$ 0
</ body>
</ html >]]></ content>
<tabTrigger> html </ tabTrigger>
<scope> text.html </ scope>
</ snippet>
...................................................................................................................................................................
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8; charset=GB2312; charset=GB5"> can continue to modify this
...................................................................................................................................................................
Continue to update to the Sublime Text 2 Build 2156
...................................................................................................................................................................
china:
...................................................................................................................................................................
Can be modified for simplified to:
<snippet>
<content> <! [CDATA [<html>
<! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh-CN" xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8; charset=GB2312; charset=GB5">
<title> $ 1 </ title>
</ head>
<body>
$ 0
</ body>
</ html >]]></ content>
<tabTrigger> html </ tabTrigger>
<scope> text.html </ scope>
</ snippet>
......................................................................................................................................................................
The next step debugging Sublime Text 2 support for all languages ​​(such as GB2312)
Such as: txt Open garbled.
PIAOYIDIAN
 
Posts: 39
Joined: Sun Dec 25, 2011 5:19 am

Re: Dev Build 2155

Postby jonathan on Tue Dec 27, 2011 1:13 pm

Thanks John!

Seems to me like there was a font regression this round. I'm using OSX Lion, and haven't previously made any font aliasing adjustments - all defaults. See the attached image. It feels "lighter" than before. Thoughts?
Attachments
Screen Shot 2011-12-27 at 8.11.52 AM.png
Screen Shot 2011-12-27 at 8.11.52 AM.png (15.13 KiB) Viewed 2888 times
jonathan
 
Posts: 22
Joined: Tue Aug 30, 2011 12:42 pm

Re: Dev Build 2155

Postby jps on Tue Dec 27, 2011 2:16 pm

jonathan: There haven't been any font rendering changes in the dev build, but going by that screenshot you've enabled greyscale anti-aliasing (i.e., as opposed to sub-pixel anti-aliasing). You can fix this via http://www.sublimetext.com/docs/2/revert.html
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Dev Build 2155

Postby jonathan on Tue Dec 27, 2011 2:51 pm

Hey thanks for the follow up. I tried that without success...still showing the way it was before. I hadn't previously made any changes to the aliasing settings, it did this all on its own upon the last update.

Also, I tried to "force" the default sub-pixel aliasing (see attached image) and it made no difference as well. I'm curious if anyone else is having this problem?
Attachments
Screen Shot 2011-12-27 at 9.49.00 AM.png
Screen Shot 2011-12-27 at 9.49.00 AM.png (42.6 KiB) Viewed 2801 times
jonathan
 
Posts: 22
Joined: Tue Aug 30, 2011 12:42 pm

Re: Dev Build 2155

Postby weslly on Tue Dec 27, 2011 3:48 pm

jonathan wrote:I'm curious if anyone else is having this problem?


It works fine for me

Screen Shot 2011-12-27 at 1.45.33 PM.png
Screen Shot 2011-12-27 at 1.45.33 PM.png (62.18 KiB) Viewed 2756 times
weslly
 
Posts: 203
Joined: Sun Aug 28, 2011 3:57 am
Location: Brazil

Re: Dev Build 2155

Postby fjl on Wed Dec 28, 2011 1:29 am

There are two small regressions in this build (compared to the current beta):

  • My Erlang plugin defines snippets that start with non-alphanumeric characters.
    Expanding them leaves part of the trigger in the buffer. Example (^ is position where i press TAB)
    Code: Select all
    -com
        ^

    Results in:
    Code: Select all
    --compile([export_all]).

    While it should be
    Code: Select all
    -compile([export_all]).

    Snippet definition is here.
    If "compile" is in the buffer already, the "-com" snippet is ranked lower than word completion, triggering only
    after another press of TAB.

    I have another snippet in my user directory that triggers on %--, using it leaves the whole trigger in the buffer and just inserts
    the snippet content after it.

    Those snippets (starting with non-aphanumeric character) are also not shown in the completion list.

  • Vintage command dd repeated with . several times deletes subsequently larger areas of text.
    Example: Using dd deletes 1 line, repeating the first time works as expected, repeating again works as expected,
    repeating the third time deletes 2 lines, a few more repeats and the rest of the buffer is gone.
fjl
 
Posts: 36
Joined: Wed Dec 28, 2011 12:41 am

Re: Dev Build 2155

Postby atomi on Wed Dec 28, 2011 1:31 am

So update notes say HTML5 support was added, but I'm getting invalid.illegal on

Code: Select all
<!doctype html>


Can you please merge this to HTML.tmLanguage
Code: Select all
--- C:\Dropbox\Workspace\Projects\HTML5lang\HTML.tmLanguage Tue Dec 27 16:36:49 2011
+++ C:\Dropbox\Workspace\Projects\HTML5lang\HTML5.tmLanguage Wed Dec 21 19:39:58 2011
@@ -15,10 +15,10 @@
        <string>ctp</string>
    </array>
    <key>firstLineMatch</key>
-   <string>&lt;!DOCTYPE|&lt;(?i:html)|&lt;\?(?i:php)</string>
+   <string>&lt;!DOCTYPE|doctype|&lt;(?i:html)|&lt;\?(?i:php)</string>
    <key>foldingStartMarker</key>
    <string>(?x)
-       (&lt;(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)\b.*?&gt;
+       (&lt;(?i:a|article|aside|audio|blockquote|body|canvas|datalist|details|div|dl|fieldset|figcaption|figure|footer|form|head|header|hgroup|li|mark|meter|nav|ol|output|p|progress|rp|rt|ruby|script|section|select|small|style|summary|table|tbody|tfoot|thead|time|tr|ul|video)\b.*?&gt;
        |&lt;!--(?!.*--\s*&gt;)
        |^&lt;!--\ \#tminclude\ (?&gt;.*?--&gt;)$
        |&lt;\?(?:php)?.*\b(if|for(each)?|while)\b.+:
@@ -27,7 +27,7 @@
        )</string>
    <key>foldingStopMarker</key>
    <string>(?x)
-       (&lt;/(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)&gt;
+       (&lt;/(?i:a|article|aside|audio|blockquote|body|canvas|datalist|details|div|dl|fieldset|figcaption|figure|footer|form|head|header|hgroup|li|mark|meter|nav|ol|output|p|progress|rp|rt|ruby|script|section|select|small|style|summary|table|tbody|tfoot|thead|time|tr|ul|video)&gt;
        |^(?!.*?&lt;!--).*?--\s*&gt;
        |^&lt;!--\ end\ tminclude\ --&gt;$
        |&lt;\?(?:php)?.*\bend(if|for(each)?|while)\b
@@ -180,7 +180,7 @@
            <array>
                <dict>
                    <key>begin</key>
-                   <string>(DOCTYPE)</string>
+                   <string>(DOCTYPE|doctype)</string>
                    <key>captures</key>
                    <dict>
                        <key>1</key>
Attachments
html5lang.diff.zip
(820 Bytes) Downloaded 109 times
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: Dev Build 2155

Postby dacap on Wed Dec 28, 2011 1:34 pm

Just a comment, I think the "amount" argument of "move" command is not working: Try
Code: Select all
view.run_command('move', { "by": "characters", "forward": True, "amount": 100 })

You will see that it moves only one character forward. Another thing, how I can see the available arguments for each command?
dacap
 
Posts: 8
Joined: Thu Dec 22, 2011 2:44 pm
Location: Santa Fe, Santa Fe, Argentina

Re: Dev Build 2155

Postby jonathan on Tue Jan 03, 2012 1:54 pm

John, just an update on this. I believe this font aliasing issue I'm experiencing has something to do with the screen resolution. I took my laptop to work and plugged it into my Apple cinema display and the problem went away (see attached screenshot).

Will test at home on my 28" Samsung monitor tonight.
Attachments
Screen Shot 2012-01-03 at 8.50.07 AM.png
Screen Shot 2012-01-03 at 8.50.07 AM.png (20.66 KiB) Viewed 1913 times
jonathan
 
Posts: 22
Joined: Tue Aug 30, 2011 12:42 pm

Next

Return to General Discussion

Who is online

Users browsing this forum: tux. and 13 guests