<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>たねっぱ！ &#187; Dreamweaver</title>
	<atom:link href="https://taneppa.net/tag/dreamweaver/feed/" rel="self" type="application/rss+xml" />
	<link>https://taneppa.net</link>
	<description>コツコツあつめるWeb作りのためのたね　たねっぱ！Web系情報ブログ　Webのお役立ちネタ配信中！</description>
	<lastBuildDate>Tue, 09 May 2023 00:02:06 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>【Dreamweaver CC】でHTML5での画像挿入バグを直す方法</title>
		<link>https://taneppa.net/dwbug/</link>
		<comments>https://taneppa.net/dwbug/#comments</comments>
		<pubDate>Mon, 28 Jul 2014 06:33:56 +0000</pubDate>
		<dc:creator>yanoppa!</dc:creator>
				<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[バグ解消]]></category>
		<category><![CDATA[効率化]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=2070</guid>
		<description><![CDATA[Dreamweaver CC でHTML5なのに画像挿入すると 最後に / (スラッシュ)が入ってしまいます。そのバグを直す方法を紹介します！]]></description>
				<content:encoded><![CDATA[
<div style="line-height: 2.4;">
<h2></h2>
<p>おはこんばんちわ、毎年かならず風邪を3度は患うやのっぱです(´・ω・｀)おほー</p>
<br />
<p>本日はあの煩わしかったDreamweaverCCの画像挿入バグ改善法をご紹介します。</p>
<br />
<p>この改善方法が、意外とググっても出てこないんですよね。。。<br /> というわけで、ふたっぱのジェバンニ（Boss）が一晩でやってくれました←ものの4～5分</p>
<br />
<p>その前に、どのようなバグかと申しますと、DreamweaverCCを使用してドキュメントタイプHTML5でコーディングしていくとき<br /> 画像挿入をすると、&lt;img src=&#8221;*****.jpg&#8221; width=&#8221;300&#8243; height=&#8221;300&#8243; alt=&#8221;"/&gt;と出ます。</p>
<br />
<p>なにがおかしいの？っと思いますよね…<br /> よくご覧になってください。</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-2075" alt="bug01" src="https://taneppa.net/wp-content/uploads/2014/07/bug01.jpg" width="300" height="150" /></p>
<p>そう…HTML5は閉じスラッシュいらないんです…しかも半角スペースも入ってないし(´・ω・｀)</p>
<br />
<p>一応HTML5はxhtmlの記述でも問題なく動くのですが、気持ち悪いですよね。<br /> きっちりしてる制作会社だと、直して～と言われるところです。</p>
<br />
<p>でわ、これを直す方法ですがDreamweaverを制御してるjsを直接編集していきます。<br /> ファイルの場所など自信が無い方は、お近くのよく知ってる人にお願いしてみてください！</p>
<br />
<p>ファイルの場所</p>
<p>C:\Program Files (x86)＞\Adobe＞\AdobeDreamweaverCC＞\configuration＞\Objects＞\Common＞\image.js</p>
<p>のimage.jsを変更していきます。<br /> 階層が奥の方なので、変なところを触らないように気をつけましょう♪</p>
<br />
<p>では、エディターソフトでimage.jsを開きます。(Dreamweaverでも良いです)<br /> 失敗が心配な方はバックアップをとっておきましょう！ image.jsファイルをコピーして拡張子.jsを.bkなどに変えて置いておくと便利です。</p>
<br />
<p>編集する場所は52行目にある【rtnStr = rtnStr + &#8216;alt=&#8221;&#8216; + &#8216;&#8221; /&gt;&#8217;;】の部分です</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-2076" alt="bug02" src="https://taneppa.net/wp-content/uploads/2014/07/bug02.jpg" width="600" height="300" /></p>
<br />
<p>ここを以下のソースに置き換えます。</p>
<pre class="brush: xml; title: ; notranslate">
 if(thisDOM.getIsXHTMLStrictDocument()){
   rtnStr = rtnStr + 'alt=&quot;' + '&quot; /&gt;';
 }else{
   rtnStr = rtnStr + 'alt=&quot;' + '&quot;&gt;';
 }
</pre><br /><br /><br /><br />
<p>こんな感じになればよいです</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-2077" alt="bug03" src="https://taneppa.net/wp-content/uploads/2014/07/bug03.jpg" width="600" height="300" /></p>
<br />
<p>保存したら、Dreamweaverを起動している方は一度落として、もう一度ソフトを立ち上げてください。</p>
<p>すると、imgタグのバグが直っているはずです！</p>
<p>この仕様に戸惑っていた方も多いはず！<br /> 早速書き換えてみてください♪</p>
<p>それでは！良きコーディングライフを～see you(・ω&lt;)ﾉｼ</p>
</div>
]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/dwbug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dreamweaverのコーディングを楽にする方法</title>
		<link>https://taneppa.net/coding01/</link>
		<comments>https://taneppa.net/coding01/#comments</comments>
		<pubDate>Mon, 02 Jun 2014 09:19:02 +0000</pubDate>
		<dc:creator>yanoppa!</dc:creator>
				<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[Web制作]]></category>
		<category><![CDATA[コーディング]]></category>
		<category><![CDATA[初心者向け]]></category>
		<category><![CDATA[効率化]]></category>
		<category><![CDATA[拡張機能]]></category>

		<guid isPermaLink="false">https://taneppa.net/?p=1717</guid>
		<description><![CDATA[Dreamweaverのコーディングを楽にする方法（スニペット・ショートカット・コードヒント・プラグイン・Emmet Zen-Codingなど）を紹介します！]]></description>
				<content:encoded><![CDATA[<div style="line-height: 2;">
<h2>Dreamweaverのコーディングを楽にする方法</h2>
<p>こんばんちわ、まーくあっぷえんじにゃぁ4ヶ月弱のやのっぱです。</p>
<p>少しは出来るようになってきたのか、いかに楽をしてコーディングをするかを考える余裕が出来てきたので、そろそろ一度まとめてみようかと思います。</p>
<br />
<h3>目次</h3>
<ul>
	<li><a href="#move1">ショートカットキーを使う、カスタマイズする</a></li>
	<li><a href="#move2">コードヒントのカスタマイズ</a></li>
	<li><a href="#move3">スニペットを活用する</a></li>
	<li><a href="#move4">閉じタグプラグインを使う</a></li>
	<li><a href="#move5">画像サイズリセット・ハーフプラグインを使う</a></li>
	<li><a href="#move6">Emmet/Zen-Codingを使う</a></li>
</ul>
<br />
<div id="move1" style="padding-top: 100px; margin-top: -100px;">
<h3 class="scroll">1.ショートカットキーを使う、カスタマイズする</h3>
<br />
<p>よく使っているショートカットキーを並べてみました。<br /> コピペや保存とかは割愛並べると増えたなぁ…と実感しますねｗ</p>
<br />
<table style="border: 1px solid #93580D;" border="1">
<tbody>
<tr>
<th scope="row">Shift+Enter</th>
<td>&lt;br&gt;</td>
</tr>
<tr>
<th scope="row">Ctrl+Shift+P</th>
<td>&lt;p&gt;&lt;/p&gt;</td>
</tr>
<tr>
<th scope="row">Ctrl+B</th>
<td>&lt;strong&gt;&lt;/strong&gt;</td>
</tr>
<tr>
<th scope="row">Ctrl+G</th>
<td>行へ移動（chromeのデベロッパーツールなどをみて行数移動したいとき重宝）</td>
</tr>
<tr>
<th scope="row">Ctrl+F</th>
<td>検索・置換</td>
</tr>
<tr>
<th scope="row">Ctrl+Alt+I</th>
<td>画像挿入</td>
</tr>
<tr>
<th scope="row">Home</th>
<td>行の先頭へ</td>
</tr>
<tr>
<th scope="row">End</th>
<td>行の最後へ</td>
</tr>
<tr>
<th scope="row">Ctrl+Home</th>
<td>ページの先頭へ</td>
</tr>
<tr>
<th scope="row">Ctrl+End</th>
<td>ページの最後へ</td>
</tr>
</tbody></table>
<br />
<p>色々いじってるので、標準はこのくらいかと思います</p>
<p>次は追加したものです、追加の仕方は編集→キーボードショートカットを開いて追加して行けます。</p>
<p>私はほとんどがEmmetになってましたｗ</p>
<br />
<table style="border: 1px solid #93580D;" border="1">
<tbody>
<tr>
<th scope="row">Ctrl+Shift+Q</th>
<td>ソースフォーマットの適用</td>
</tr>
<tr>
<th scope="row">Ctrl+Q</th>
<td>閉じタグ挿入（閉じタグ挿入プラグイン）</td>
</tr>
<tr>
<th scope="row">Ctrl+Shift+A</th>
<td>Emmet機能(wrap with addreviation)：選択範囲を任意のタグで囲う</td>
</tr>
<tr>
<th scope="row">Ctrl+Shift+W</th>
<td>Emmet機能(toggle comment)：選択範囲をコメントにする</td>
</tr>
<tr>
<th scope="row">Ctrl+PageUp</th>
<td>Emmet機能(previous edit point)前のタグとタグの間へ移動</td>
</tr>
<tr>
<th scope="row">Ctrl+PageDown</th>
<td>Emmet機能(next edit point)次のタグとタグの間へ移動</td>
</tr>
<tr>
<th scope="row">Alt+下矢印</th>
<td>Emmet機能(select next item)次のプロパティ？へ移動</td>
</tr>
<tr>
<th scope="row">Alt+上矢印</th>
<td>Emmet機能(select previous item)前のプロパティ？へ移動</td>
</tr>
<tr>
<th scope="row">Ctrl+E</th>
<td>Emmet展開</td>
</tr>
</tbody></table>
<br />
<p>よく使うものは左手だけで押せるようにしてます。</p>
<p>リストやdivを作るのもショートカットで出来ます。</p>
</div>
<br />
<div id="move2" style="padding-top: 100px; margin-top: -100px;">
<h3 class="scroll">2.コードヒントのカスタマイズ</h3>
<br />
<p>Dreamweaverなどのコードヒントはとても助かるのですが、よくwidthと打とうとしてwindow打っちゃうことが多々。。。</p>
<p>windowとかつかわないし！！っということで、コードヒントでまず使わないであろうものを削ったり、並び替えたりしてあるコードヒントに変えてしまいます。</p>
<br />
<p>私は<a href="http://www.extype.com/karakuri/archives/2006/03/dreamweaver.html" target="_blank">カラクリエイトさんのブログ</a>でダウンロードできる<strong>CodeHints</strong>を使わせていただいてます。</p>
<br />
<p>打ち易さが劇的に変わりますので、おためしください。</p>
<p>使い方は、ダウンロードした<strong>CodeHints.xml</strong>を<strong>c:&gt;Program Files&gt;Adobe&gt;Adobe Dreamweaver CC&gt;configuration&gt;CodeHints</strong>の中にあるもともとの<strong>CodeHints.xml</strong>に上書きするだけです。</p>
<p>心配な方は、もともとの方の拡張子を.bakなどに変更しておくと安全です。</p>
<br />
<p>他にも私は使っていませんがCSS3のコードヒント拡張やセレクターコードヒントの拡張などもあります。</p>
<ul>
	<li><a href="http://dwlog.net/2010/05/css3extenstion.html" target="_blank">dwlog.netさん CSS3コードヒント機能拡張</a></li>
	<li><a href="http://dwlog.net/2010/04/cssselectorupdate.html" target="_blank">dwlog.netさん CSSセレクターコードヒント修正</a></li>
</ul>
</div>
<br />
<div id="move3" style="padding-top: 100px; margin-top: -100px;">
<h3 class="scroll">3.スニペットを活用する</h3>
<br />
<p>スニペットというのは、コピペ集のようなものです。</p>
<p>CSSでグラデーションつけるとか、これはまた打つの面倒くさいなぁ。。。と思うようなものを<br /> どんどん登録して置いておける機能です。</p>
<p>使い方は、ウィンドウ&gt;スニペットでスニペットウィンドウを開きます。<br /> ウィンドウ右下の新規スニペットで作成し、適当な名前をつけて、種類を囲むのか挿入なのかを決めて<br /> 内容を決めて保存すると使えます。</p>
<br />
<p>初めはなんのこっちゃ？抹茶に紅茶ですが、使っていくと便利さに気がつくと思います。</p>
<p>まずは、無理矢理にでも使ってみてください。</p>
</div>
<br />
<div id="move4" style="padding-top: 100px; margin-top: -100px;">
<h3 class="scroll">4.閉じタグプラグインを使う</h3>
<br />
<p>マークアップに欠かせないのが閉じタグコメントです。</p>
<p>これがあるのと無いのとで、作業のやりやすさがだいぶ変わってきます。</p>
<p>でも、いちいち打ち込むのも面倒。。。</p>
<p>ということで、拡張してワンタッチで挿入できるようになるプラグインをご紹介します。</p>
<br />
<p><strong>End_comment.mxp</strong></p>
<p><a href="http://design.kayac.com/topics/2010/05/dreamweaver-extention.php" target="_blank">コメントを生成して挿入するDreamweaver用の拡張機能を作成しました：KATAC DESIGNER&#8217;S BLOG 渕上さん</a></p>
<br />
<p>こちらmxpファイルですので、<strong>ExtensionManager CS6</strong>は正常にインストールできますが、CCはzxpファイルに変換しないとつかえません。</p>
<p>変換の仕方は<strong>ExtensionManager CS6</strong>を開き、ツールからMXP拡張機能をZXPに変換を選び、<strong>End_comment.mxp</strong>を置いてあるフォルダへ移動して、<strong>End_comment.mxp</strong>を選択すると、同じ場所に変換したものを作成してくれます。<br /> 変換した<strong>End_comment.zxp</strong>をダブルクリックすると<strong>ExtensionManager CC</strong>が立ち上がり、インストールしてくれます。</p>
</div>
<br />
<div id="move5" style="padding-top: 100px; margin-top: -100px;">
<h3 class="scroll">5.画像サイズリセット・ハーフプラグインを使う</h3>
<br />
<p>画像の差し替えや、Retina対応のためサイズを半分にするとき、一つ一つ変更してると面倒ですよね。<br /> 面倒くさいのはいやなので、これも一括で変更できる拡張機能を入れます。</p>
<p>とっても便利なので、おすすめします。</p>
<br />
<p>この、そう！それが欲しかった！という拡張機能作ってくださったのは、<a href="http://www.kuma-de.com/" target="_blank">きんくまデザイン</a>さんです。</p>
<p>ほんと感謝ですｗ</p>
<br />
<p><a href="http://www.kuma-de.com/blog/2009-01-27/298" target="_blank">きんくまデザインさん Dreamweaver 画像の幅と高さをリセットするコマンド</a></p>
<br />
<p>そして、Retina対応に欠かせない画像サイズを半分にするのもご紹介</p>
<br />
<p><a href="http://c-brains.jp/blog/wsg/12/01/12-193213.php" target="_blank">バシャログさん Dreamweaverで画像サイズをリセットするコマンド＆半分にするコマンド（Retina対応に便利）</a></p>
<br />
<p>これまた、欲しかった機能です。<br /> ページ内の画像サイズを縦横半分にしてくれます。</p>
<p>すばらしぃ</p>
<p>スマホサイトを作るときは重宝します。</p>
</div>
<br />
<div id="move6" style="padding-top: 100px; margin-top: -100px;">
<h3 class="scroll">6.Emmet/Zen-Codingを使う</h3>
<br />
<p>今ではこれがないとコーディングしたくないですねｗ</p>
<p>エメットさんは俺の嫁</p>
<br />
<p>使い方を覚えるまではもたもたするかもですが、コーディングの効率が格段に上がります。 まだお使いでない方はためしに使用してみるのもいいと思いますよ。</p>
<br />
<p>インストール方法</p>
<p>こちらEmmet公式サイトから使用エディターのダウンロードを選びます。</p>
<p><a href="http://emmet.io/download/">ダウンロードはこちら</a></p>
<p><strong>GitHub</strong>に飛びますので、右にある<strong>Download ZIP</strong>でダウンロードしてください。<br /> あとはEmmet.zxpをダブルクリックして<strong>ExtensionManager</strong>でインストールするだけです。</p>
<h4><strong>基本的な使い方</strong></h4>
<p>省略されたコマンドを打って展開するとHTMLやCSSがぽぽぃっと吐き出されます。</p>
<br />
<table style="border: 1px solid #93580D;" border="1">
<tbody>
<tr>
<th scope="row">展開キー</th>
<td>Ctrl+E</td>
</tr>
<tr>
<th scope="row">&gt;</th>
<td>の中の</td>
</tr>
<tr>
<th scope="row">ˆ</th>
<td>一つ戻って</td>
</tr>
<tr>
<th scope="row">+</th>
<td>同列</td>
</tr>
<tr>
<th scope="row">*</th>
<td>掛ける</td>
</tr>
<tr>
<th scope="row">$</th>
<td>連番1～</td>
</tr>
<tr>
<th scope="row">$$</th>
<td>二桁の連番01～</td>
</tr>
<tr>
<th scope="row">()</th>
<td>グループ化</td>
</tr>
<tr>
<th scope="row">.</th>
<td>Class</td>
</tr>
<tr>
<th scope="row">#</th>
<td>id</td>
</tr>
</tbody></table>
<br />
<p>これだけあれば大体つかえます。</p>
<br />
<p>例えば<strong>#Contents</strong>を展開するとdiv<strong></strong>に<strong>id</strong>が付いた状態で展開されます。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;Contents&quot;&gt;&lt;/div&gt;
</pre><br /><br />
<p>divの中にpを入れたいときはこんなかんじです。</p>
<p><strong>#Contents&gt;p</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;Contents&quot;&gt;
  &lt;p&gt;&lt;/p&gt;
&lt;/div&gt;
</pre><br /><br />
<p>htmlのテンプレートもでます。</p>
<pre class="brush: xml; title: ; notranslate"> 
&lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;UTF-8&quot;&gt;
&lt;title&gt;Document&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre><br /><br />
<p>このテンプレは<br /> !と打って展開するだけで出てきます。<br /> 楽ちんすぎる！！</p>
<p>他にも</p>
<p><strong>ul&gt;li*6</strong>と打って展開すると</p>
<pre class="brush: xml; title: ; notranslate">
&lt;ul&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre><br /><br />
<p>と一発ででます。</p>
<p>もう少しいじって<br /> <strong>ul&gt;(li&gt;a[href=#]{サンプル$$})*6</strong>を展開すると</p>
<pre class="brush: xml; title: ; notranslate">
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;サンプル01&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;サンプル02&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;サンプル03&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;サンプル04&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;サンプル05&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#&quot;&gt;サンプル06&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre><br /><br />
<p>と連番も可能です。</p>
<p>imgのsrcを連番にしておくと挿入が一瞬ですし、サイズ違ってても先にご紹介した画像リセットコマンド使えば問題なく使えます。</p>
<p><strong>ul&gt;(li&gt;a&gt;img[src=./images/dummy_img$$.jpg])*6</strong>を展開すると</p>
<pre class="brush: xml; title: ; notranslate">
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img01.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img02.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img03.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img04.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img05.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img06.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre><br /><br />
<p>途中からもできます。</p>
<p><strong>ul&gt;(li&gt;a&gt;img[src=./images/dummy_img$$@3.jpg])*6</strong>、$$の後ろに@3をつけました。</p>
<pre class="brush: xml; title: ; notranslate">
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img03.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img04.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img05.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img06.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img07.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;img src=&quot;./images/dummy_img08.jpg&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre><br /><br />
<p>このように03から連番に出来ます。</p>
<p>私はタグをせこせこ打ちたくないので、全部これで作っちゃいます。<br /> 手間っぽいですが、今のところ余程レイアウトがあれこれしてなければ、この方法で作る方が早くなりました。</p>
<p>例えば</p>
<p><strong>!&gt;(hdr#header&gt;.inner&gt;h1.logo{ロゴ}+nav#Gnav&gt;ul.navList.clearfix&gt;(li&gt;a[href=#]{ナビ$})*5)+(#Contents&gt;art.contArt&gt;h2.mainTi{タイトル}t+(sect.contSect$$&gt;h3.sectTit{タイトル}+.sectMain.clearfix&gt;.txtBlock&gt;p.txt{テキスト}^fig.photo&gt;a[href=#]&gt;img)*2)+(ftr#Footer&gt;.inner&gt;small#CopyRight&gt;img)</strong>と改行をしないで長々と打ちます。<br /> 慣れるとこのくらいなら4～5分かからないで打てます。</p>
<p>展開すると</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!doctype html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta charset=&quot;UTF-8&quot;&gt;
&lt;title&gt;Document&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;header id=&quot;header&quot;&gt;
  &lt;div class=&quot;inner&quot;&gt;
    &lt;h1 class=&quot;logo&quot;&gt;ロゴ&lt;/h1&gt;
    &lt;nav id=&quot;Gnav&quot;&gt;
      &lt;ul class=&quot;navList clearfix&quot;&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;ナビ1&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;ナビ2&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;ナビ3&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;ナビ4&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#&quot;&gt;ナビ5&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/div&gt;
&lt;/header&gt;
&lt;div id=&quot;Contents&quot;&gt;
  &lt;article class=&quot;contArt&quot;&gt;
    &lt;h2 class=&quot;mainTi&quot;&gt;タイトル&lt;/h2&gt;
    &lt;section class=&quot;contSect01&quot;&gt;
      &lt;h3 class=&quot;sectTit&quot;&gt;タイトル&lt;/h3&gt;
      &lt;div class=&quot;sectMain clearfix&quot;&gt;
        &lt;div class=&quot;txtBlock&quot;&gt;
          &lt;p class=&quot;txt&quot;&gt;テキスト&lt;/p&gt;
        &lt;/div&gt;
        &lt;figure class=&quot;photo&quot;&gt;&lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/figure&gt;
      &lt;/div&gt;
    &lt;/section&gt;
    &lt;section class=&quot;contSect02&quot;&gt;
      &lt;h3 class=&quot;sectTit&quot;&gt;タイトル&lt;/h3&gt;
      &lt;div class=&quot;sectMain clearfix&quot;&gt;
        &lt;div class=&quot;txtBlock&quot;&gt;
          &lt;p class=&quot;txt&quot;&gt;テキスト&lt;/p&gt;
        &lt;/div&gt;
        &lt;figure class=&quot;photo&quot;&gt;&lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/figure&gt;
      &lt;/div&gt;
    &lt;/section&gt;
  &lt;/article&gt;
&lt;/div&gt;
&lt;footer id=&quot;Footer&quot;&gt;
  &lt;div class=&quot;inner&quot;&gt;&lt;small id=&quot;CopyRight&quot;&gt;&lt;img src=&quot;&quot; alt=&quot;&quot;&gt;&lt;/small&gt;&lt;/div&gt;
&lt;/footer&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre><br /><br />
<p>が一瞬で吐き出されます。<br /> あとはテキストや画像を入れて、CSSを書くだけ簡単！</p>
<p>それに閉じタグ忘れなどもなくなります。</p>
<p>構造がややこしくなればなるほど書くことも多くなりがちですが、マウス使わないでさくさく打つだけなので、私はこの方が好きみたいです。</p>
<p><a href="http://docs.emmet.io/cheat-sheet/" target="_blank">詳しいコマンドはこちら</a></p>
<p>コーディングは早ければ早いほどよいし、楽にそうできたらいいですよね。</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>https://taneppa.net/coding01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
