This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div> | |
| <div v-if="sampleProp === 1">template A</div> | |
| <div v-else-if="sampleProp === 2">template B</div> | |
| <div v-else>template C</div> | |
| </div> | |
| </template> | |
| <script> | |
| export default { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="my-class"> | |
| サンプル{{sampleData}} | |
| </div> | |
| </template> | |
| <script> | |
| export default { | |
| name: 'MyComponent', | |
| data () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <TextBox x:Name="TestTextBox" Grid.Column="1" HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" VerticalAlignment="Center" Width="200"> | |
| <TextBox.Style> | |
| <Style TargetType="{x:Type TextBox}"> | |
| <Setter Property="Text" Value="りんご"/> | |
| <Style.Triggers> | |
| <DataTrigger Binding="{Binding TestFlag}" Value="True"> | |
| <Setter Property="Text" Value="バナナ"/> | |
| </DataTrigger> | |
| </Style.Triggers> | |
| </Style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <TextBox x:Name="TestTextBox" Grid.Column="1" HorizontalAlignment="Center" Height="23" TextWrapping="Wrap" Text="りんご" VerticalAlignment="Center" Width="200"> | |
| <TextBox.Triggers> | |
| <DataTrigger Binding="{Binding TestFlag}" Value="True"> | |
| <Setter Property="Text" Value="バナナ"/> | |
| </DataTrigger> | |
| </TextBox.Triggers> | |
| </TextBox> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 色を定義する --> | |
| <SolidColorBrush x:Key="BaseBrush" Color="#EEEEEE" /> | |
| <!-- BaseBrushの色を参照するSolidColorBrush --> | |
| <SolidColorBrush x:Key="SampleBrush" Color="{Binding Color, Source={StaticResource BaseBrush}}" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="utf-8"/> | |
| </head> | |
| <body> | |
| 本文 | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // main.php | |
| // 外部ファイルのインポート | |
| require_once 'Soda.php'; | |
| // 名前空間のエイリアス | |
| use Mochi\MyNamespace as Mine; | |
| // Sodaクラスのインスタンスの生成。コンストラクタの呼び出し。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Soda.php | |
| // 名前空間の定義 | |
| namespace Mochi\MyNamespace; | |
| // 外部ファイルのインポート | |
| require_once 'Drink.php'; | |
| // クラスの継承 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Drink.php | |
| // 名前空間の定義 | |
| namespace Mochi\MyNamespace; | |
| // クラスの定義 | |
| class Drink | |
| { | |
| // メンバ変数 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "html": { | |
| "prefix": "htmltemplate", | |
| "body": [ | |
| "<!DOCTYPE html>", | |
| "<html lang=\"$1\">", | |
| "\t<head>", | |
| "\t\t<meta charset=\"$2\"/>", | |
| "\t\t<title>$3</title>", | |
| "\t</head>", |