TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Editing: Wiki: 整形されたコードを挿入するには (ja-JP)
Wiki
>
TechNet Articles
>
Wiki: 整形されたコードを挿入するには (ja-JP)
Article
History
Title
<html> <body> 人間が読み易いコードを TechNet Wiki に挿入することは、読み手にとって多くの価値があります。ただ、記事の編集者にとってはいろいろ工夫が必要です。この記事を How to 情報として共有して利用してください。<br> <br> Wiki のエディターには整形コードブロックオプション (<img alt="" src="http://social.technet.microsoft.com/wiki/resized-image.ashx/__size/550x0/__key/CommunityServer-Wikis-Components-Files/00-00-00-00-05/1884.formatcodeblock.PNG" style="border:0px solid">) があります。クリックしてみてください。いくつかのコードを入力し、言語を選択してから OK をクリックします。それにより、整形されたコードが記事へ挿入されます。<br> <br> <strong>その他のオプション</strong><br> <ul> <li><a href="http://social.technet.microsoft.com/wiki/contents/articles/7364.technet-wiki-windows-powershell-ja-jp.aspx">TechNet Wiki に整形された Windows PowerShell のコードを挿入する方法</a> </li><li><a href="http://windowslive.jp.msn.com/writer.htm">Live Writer</a> は TechNet Wiki に良く合います。Visual Studio からコードを貼り付けるために <a href="http://plugins.live.com/writer/browse?orderby=featured&page=1">Windows Live Writer Plug-ins</a> から探してください。また、Live Writer を使って記事を作成することも可能で、PowerShell ISE からのスクリプトをクリップボードへコピーするためのアドオンを作成する <a href="http://www.leeholmes.com/blog/MorePowerShellSyntaxHighlighting.aspx">http://www.leeholmes.com/blog/MorePowerShellSyntaxHighlighting.aspx</a> のスクリプトを変更します。 </li><li><a href="http://www.amergerzic.com/post/WLWSourceCodePlugin.aspx">Amer Gerzic の "Source Code Formatter"</a> を Live Writer で利用します。例えば、<a href="http://social.technet.microsoft.com/wiki/contents/articles/how-to-embed-sql-server-express-in-an-application.aspx">How to Embed SQL Server Express in an Application</a> の記事で使われています。 </li><li>もし、TechNet Wiki の編集ツールではなく、Windows Live Writer を使う場合は、<a href="http://www.carlosag.net/Tools/WindowsLiveWriter/">Free Tool to Colorize Code in Html for Windows Live Writer</a> というフリーのプラグインを使うことができます。そして生成されたコードをコピー & ペーストで TechNet Wiki に貼り付けます。 </li><li><a href="http://windows.microsoft.com/ja-JP/windows7/products/features/snipping-tool">Snipping Tool</a> ( コード記述画面のスクリーンショットを画像として扱います ) 。この方法を使う場合で、読み手が掲載したコードをコピーできるようにしたい場合は、スクリーンショットに、コードが書かれたテキストファイルへのリンクを付けるようにします。 </li><li><a href="http://www.andre-simon.de/doku/highlight/en/highlight.html">Highlight</a> ( 後で変更できるようにするため、オリジナルのコードを HTML のコメントとして残すのを忘れないようにしてください。 ) </li><li><a href="http://shjs.sourceforge.net/">SHJS - Syntax Highlighting in JavaScript</a> (JavaScript の場合) </li><li><a href="http://code.google.com/p/syntaxhighlighter/">Syntax Highlighter</a> </li><li><a href="http://www.manoli.net/csharpformat/">C# code format</a> from Manoli </li><li><a href="http://copysourceashtml.codeplex.com/">CopySourceAsHtml</a> (Visual Studio 2003、2005、2008) </li><li><a href="http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef/">Productivity Power Tools</a> (Visual Studio 2010) HTMLのコピーを含みます。詳しい情報は <a href="http://blogs.msdn.com/b/kirillosenkov/archive/2010/06/07/copy-code-in-html-format-with-visual-studio-2010.aspx"> Copy Code in HTML format with Visual Studio 2010</a> を見てください。 </li><li>コマンドラインのサンプルなど数行程度の貼り付けをハイライト無しでしたい時は、<a href="http://social.technet.microsoft.com/wiki/contents/articles/10403.wiki-html-ja-jp.aspx#Plain_Code_Box">プレーンコードボックス</a> を使うようにしてください。 </li></ul> <hr> <h2><a name="See_Also"></a>関連項目</h2> <ul> <li><a href="http://social.technet.microsoft.com/wiki/contents/articles/7609.wiki-ja-jp.aspx">はじめに</a> </li><li><a href="http://social.technet.microsoft.com/wiki/contents/articles/10113.wiki-ja-jp.aspx">開発ポータル</a> </li></ul> <h2><a name="Other_Languages"></a>他の言語</h2> <ul> <li><a href="http://social.technet.microsoft.com/wiki/contents/articles/725.wiki-how-to-insert-formatted-code-on-technet-wiki-en-us.aspx">Wiki: How to Insert Formatted Code on TechNet Wiki (en-US)</a> </li><li><a href="http://social.technet.microsoft.com/wiki/pt-br/contents/articles/13089.como-inserir-um-codigo-formatado-no-technet-wiki.aspx">Como Inserir um Código Formatado no TechNet Wiki (pt-BR)</a> </li></ul> </body> </html>
Comment
Tags
Please add 4 and 6 and type the answer here: