星期四, 10月 17, 2013

Tips:在Sublime Text 編輯html網頁時,利用tab鍵來跳出雙引號位置


在使用Sublime Text 編輯html網頁時,常常需要在不同的屬性間跳來跳去。如果可以在輸入完屬性後,利用tab鍵來跳出雙引號位置(Using tab to escape auto-completed quotes),會非常方便。
設定作法如下:

修改default key bindings:

{ "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
      [
         { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
         { "key": "auto_complete_visible", "operator": "not_equal", "operand": true },
         { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
         { "key": "following_text", "operator": "regex_contains", "operand": "^(\\]|\\)|\\}|>|\\\"|'|\\;)", "match_all": true }, 
{ "key": "has_next_field", "operator": "not_equal", "operand": true }
      ]
   }

參考資料來源:
http://www.sublimetext.com/forum/viewtopic.php?f=3&t=13337

Import text from Word or Notepad



很好的文章,教你如何用Word或文字檔變成PowerPoint簡報。


Recently, a friend told me he sometimes copied and pasted text from a Microsoft Office Word document into PowerPoint and then changed the size, color, and so on on every slide.
You should never have to do that.
You can import text from Word or even Notepad (or any text editor) to create a new presentation. This is called importing an outline. Follow these steps to create the outline:
Open a Word or Notepad document.
Type the content if you haven't already done so, following the guildines below.
Make sure each line, whether for a slide title or bulleted text, is on its own line. There should be no blank lines, because these come in as blank slides!
Before each line of bulleted text, insert a tab.
To create 2nd-level bulleted text, insert two tabs.
Save the file as a .doc or .txt file.
Here's an example:
To use the outline, follow these steps:
Start a new presentation.
Choose File > Open.
From the Files of Type drop-down list, choose All Outlines.
Find your file, select it, and click Open.
That's it! Your presentation is created! Here's an example. The only change I made was to use the Title Slide layout for the first slide.

As you can see, the text comes in the appropriate size, according to the slide master.
You can also insert an outline into an existing presentation. Perhaps you have some content that you want to use for just a couple of slides. Follow these steps:
On the Outline tab of the Outline pane, click the slide you want the outline content to appear after.
Choose insert > Slides from Outline.
Select your outline file and click Insert.