Skip to content

Commit ce11747

Browse files
committed
fix incorrect code languages
1 parent c0a1de5 commit ce11747

12 files changed

Lines changed: 17 additions & 15 deletions

File tree

content/actions/learn-github-actions/expressions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Replaces values in the `string`, with the variable `replaceValueN`. Variables in
196196

197197
{% raw %}
198198

199-
```js
199+
```javascript
200200
format('Hello {0} {1} {2}', 'Mona', 'the', 'Octocat')
201201
```
202202

@@ -208,7 +208,7 @@ Returns 'Hello Mona the Octocat'.
208208

209209
{% raw %}
210210

211-
```js
211+
```javascript
212212
format('{{Hello {0} {1} {2}!}}', 'Mona', 'the', 'Octocat')
213213
```
214214

content/code-security/secret-scanning/secret-scanning-partner-program.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ puts openssl_key.verify(OpenSSL::Digest::SHA256.new, Base64.decode64(signature),
324324

325325
**Validation sample in JavaScript**
326326

327-
```js
327+
```javascript
328328
const crypto = require("crypto");
329329
const axios = require("axios");
330330

content/codespaces/setting-up-your-project-for-codespaces/configuring-dev-containers/adding-features-to-a-devcontainer-file.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ redirect_from:
3131

3232
![Screenshot of the "Marketplace" tab showing the installation code snippet for Terraform.](/assets/images/help/codespaces/feature-installation-code.png)
3333

34-
```JSON
34+
```json
3535
"features": {
3636
...
3737
"ghcr.io/devcontainers/features/terraform:1": {},
@@ -43,7 +43,7 @@ redirect_from:
4343

4444
![Screenshot of the "Options" section of the "Marketplace" tab, with the "version" and "tflint" properties expanded.](/assets/images/help/codespaces/feature-options.png)
4545

46-
```JSON
46+
```json
4747
"features": {
4848
...
4949
"ghcr.io/devcontainers/features/terraform:1": {

content/codespaces/setting-up-your-project-for-codespaces/setting-up-your-repository/setting-up-a-template-repository-for-github-codespaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You should configure your dev container with the tools and customization to give
6262

6363
The following configuration settings for a React template will open the `app.js` file in the user's editor, run `npm start` (defined in a `package.json` file) to start a local server, and forward port `3000` to a preview browser tab in the codespace.
6464

65-
```JSON
65+
```json
6666
{
6767
"postAttachCommand": {
6868
"server": "npm start"

content/contributing/writing-for-github-docs/creating-screenshots.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ Directory | Usage
195195

196196
When there are differences between plans, you can use Liquid conditionals to version the two images.
197197

198-
```{% raw %}
198+
```markdown
199+
{% raw %}
199200
{% ifversion fpt or ghec %}
200201
![An image of foo bar for GitHub Free, GitHub Pro, GitHub Team, and GitHub Enterprise Cloud](/assets/images/foo/bar.png)
201202
{% else %}
@@ -209,7 +210,8 @@ If an image will change for {% data variables.product.prodname_ghe_server %} 3.1
209210

210211
Your Liquid conditional would look like this:
211212

212-
```{% raw %}
213+
```markdown
214+
{% raw %}
213215
{% ifversion fpt or ghec %}
214216
![An image of foo bar](/assets/images/foo/bar.png)
215217
{% elsif ghes < 3.10 %}

content/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ When referencing the URL of a label in Markdown, the label is automatically rend
5050

5151
The URL of a label can be found by navigating to the labels page and clicking on a label. For example, the URL of the label "enhancement" in our public [docs repository](https://github.com/github/docs/) is
5252

53-
```md
53+
```markdown
5454
https://github.com/github/docs/labels/enhancement
5555
```
5656

content/github-cli/github-cli/creating-github-cli-extensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ For more information, see [`gh help formatting`](https://cli.github.com/manual/g
190190
191191
1. In the directory you created, add some source code. For example:
192192
193-
```go
193+
```golang
194194
package main
195195
import (
196196
"github.com/cli/go-gh"

content/rest/guides/encrypting-secrets-for-the-rest-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ If you are using C#, you can encrypt your secret using the Sodium.Core package.
7272

7373
In the following example, replace `YOUR_SECRET` with the plain text value that you want to encrypt. Replace `YOUR_BASE64_KEY` with your Base64 encoded public key. The documentation for the endpoint that you will use to create a secret will tell you which endpoint you can use to get the public key.
7474

75-
```C# copy
75+
```csharp copy
7676
var secretValue = System.Text.Encoding.UTF8.GetBytes("YOUR_SECRET");
7777
var publicKey = Convert.FromBase64String("YOUR_BASE64_KEY");
7878

data/reusables/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Indented reusables require a special liquid tag: `indented_data_reference` which
1818

1919
For example, to indent `/data/reusables/foo/bar.md` in an ordered list, you could:
2020

21-
```md
21+
```markdown
2222
1. My first list item
2323
{% indented_data_reference reusables.foo.par spaces=2 %}
2424
1. My second list item

src/content-render/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In this directory is the main pipeline that converts our content from Liquid, Ma
44

55
## Usage
66

7-
```js
7+
```javascript
88
const renderContent = require('.')
99

1010
const html = await renderContent(`

0 commit comments

Comments
 (0)