Skip to content

Commit 6eff862

Browse files
committed
main - 3202089 docs: specify language in code snippets (#31523)
1 parent 0e17c9a commit 6eff862

File tree

3 files changed

+111
-111
lines changed

3 files changed

+111
-111
lines changed

docs-content/guides/schematics.md.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ <h2 id="install-schematics" class="docs-header-link">
1010
<p>Using the command below will install Angular Material, the <a href="https://material.angular.dev/cdk">Component Dev Kit</a> (CDK),
1111
and <a href="https://angular.dev/guide/animations">Angular Animations</a> in your project. Then it will run the
1212
installation schematic.</p>
13-
<pre><code>ng add @angular/material</code></pre><p>In case you just want to install the <code>@angular/cdk</code>, there are also schematics for the <a href="https://material.angular.dev/cdk">Component Dev Kit</a></p>
14-
<pre><code>ng add @angular/cdk</code></pre><p>The Angular Material <code>ng add</code> schematic helps you set up an Angular CLI project that uses Material. Running <code>ng add</code> will:</p>
13+
<pre><code class="language-bash">ng add @angular/material</code></pre><p>In case you just want to install the <code>@angular/cdk</code>, there are also schematics for the <a href="https://material.angular.dev/cdk">Component Dev Kit</a></p>
14+
<pre><code class="language-bash">ng add @angular/cdk</code></pre><p>The Angular Material <code>ng add</code> schematic helps you set up an Angular CLI project that uses Material. Running <code>ng add</code> will:</p>
1515
<ul>
1616
<li>Ensure <a href="guide/getting-started#step-1-install-angular-material-angular-cdk-and-angular-animations">project dependencies</a> are placed in <code>package.json</code></li>
1717
<li>Add either a prebuilt theme or a custom theme</li>
@@ -84,49 +84,49 @@ <h3 id="address-form-schematic" class="docs-header-link">
8484
<li>Material Design radio controls</li>
8585
<li>Material Design buttons</li>
8686
</ul>
87-
<pre><code>ng generate @angular/material:address-form <component-name></code></pre>
87+
<pre><code class="language-bash">ng generate @angular/material:address-form &lt;component-name&gt;</code></pre>
8888
<h3 id="navigation-schematic" class="docs-header-link">
8989
<span header-link="navigation-schematic"></span>
9090
Navigation schematic
9191
</h3>
9292
<p>The <code>navigation</code> schematic will create a new component that includes
9393
a toolbar with the app name, and a responsive side nav based on Material
9494
breakpoints.</p>
95-
<pre><code>ng generate @angular/material:navigation <component-name></code></pre>
95+
<pre><code class="language-bash">ng generate @angular/material:navigation &lt;component-name&gt;</code></pre>
9696
<h3 id="table-schematic" class="docs-header-link">
9797
<span header-link="table-schematic"></span>
9898
Table schematic
9999
</h3>
100100
<p>The table schematic will create a component that renders an Angular Material <code>&lt;table&gt;</code> which has
101101
been pre-configured with a datasource for sorting and pagination.</p>
102-
<pre><code>ng generate @angular/material:table <component-name></code></pre>
102+
<pre><code class="language-bash">ng generate @angular/material:table &lt;component-name&gt;</code></pre>
103103
<h3 id="dashboard-schematic" class="docs-header-link">
104104
<span header-link="dashboard-schematic"></span>
105105
Dashboard schematic
106106
</h3>
107107
<p>The <code>dashboard</code> schematic will create a new component that contains
108108
a dynamic grid list of Material Design cards.</p>
109-
<pre><code>ng generate @angular/material:dashboard <component-name></code></pre>
109+
<pre><code class="language-bash">ng generate @angular/material:dashboard &lt;component-name&gt;</code></pre>
110110
<h3 id="tree-schematic" class="docs-header-link">
111111
<span header-link="tree-schematic"></span>
112112
Tree schematic
113113
</h3>
114114
<p>The <code>tree</code> schematic can be used to quickly generate an Angular component that uses the Angular
115115
Material <code>&lt;mat-tree&gt;</code> component to visualize a nested folder structure.</p>
116-
<pre><code>ng generate @angular/material:tree <component-name></code></pre>
116+
<pre><code class="language-bash">ng generate @angular/material:tree &lt;component-name&gt;</code></pre>
117117
<h3 id="drag-and-drop-schematic" class="docs-header-link">
118118
<span header-link="drag-and-drop-schematic"></span>
119119
Drag and Drop schematic
120120
</h3>
121121
<p>The <code>drag-drop</code> schematic is provided by the <code>@angular/cdk</code> and can be used to generate a component
122122
that uses the CDK drag and drop directives.</p>
123-
<pre><code>ng generate @angular/cdk:drag-drop <component-name></code></pre>
123+
<pre><code class="language-bash">ng generate @angular/cdk:drag-drop &lt;component-name&gt;</code></pre>
124124
<h3 id="material-3-theme-schematic" class="docs-header-link">
125125
<span header-link="material-3-theme-schematic"></span>
126126
Material 3 Theme schematic
127127
</h3>
128128
<p>The <code>theme-color</code> schematic will generate a file with Material 3 palettes from the specified colors
129129
that can be used in a theme file. It also generates high contrast color override mixins if
130130
specified.</p>
131-
<pre><code>ng generate @angular/material:theme-color</code></pre><p>Learn more about this schematic in its <a href="https://github.com/angular/components/blob/main/src/material/schematics/ng-generate/theme-color/README.md">documentation</a>.</p>
131+
<pre><code class="language-bash">ng generate @angular/material:theme-color</code></pre><p>Learn more about this schematic in its <a href="https://github.com/angular/components/blob/main/src/material/schematics/ng-generate/theme-color/README.md">documentation</a>.</p>
132132
</div>

0 commit comments

Comments
 (0)