ホーム 暮らし [Discord Guide #001] Message Text Formatting

[Discord Guide #001] Message Text Formatting

八木 麻衣 八木 麻衣 • 更新: • 公開: • 読了約 46 分
目次

09/12/24
Changed Discord demonstrations to images and examples to text
Moved commands to a separate article

You can get detailed information and the latest updates on Discord ahead of time.
If you are interested, please feel free to join.

1. Basic Formatting

nc3cb253926ba
text here    // 太字
text here      // 斜体
_text here_      // 
text here  // 太字 + 斜体
_text here_  // 
_text here_  // 
~~text~~         // 打消し線
text here    // 下線
||text||         // スポイラー

2. Headings

# 見出し 1
見出し 2
見出し 3

※ 見出しは レベル3 まで適用、以降のレベルは未対応

3. Small Text

This might be good for adding ruby-like annotations.

-# 小さい文字

4. Unordered List

- リスト 1
 - リスト 1-1
 - リスト 1-2
- リスト 2

* リスト 1
 * リスト 1-1
 * リスト 1-2
* リスト 2

5. Ordered List

If you change the starting number of the first list item,
that value will be used as the baseline.
If you want it to be fully automatic, it is best to just write 1.

1. リスト 1
 1. リスト 1-1
 1. リスト 1-2
1. リスト2

3. リスト 3 // 3 からカウント開始(3, 4, 5)
1. リスト 4
1. リスト 5

6. Inline Code

これは インラインコード\ です

7. Blockquote

> これは引用です

8. Linked Text

Please be very careful, as this can sometimes be misused.

これは [表示したい文字列](URL) です

9. Escape Characters

// 修飾子に \(キーボードの¥マークの位置のキー)の付与が必要
\# これは見出しでした

10. Code Blocks

``
コードブロック
``

11. Syntax Highlighting (Basic)

You can represent code within Discord as shown below.
The formatting and display within the code block change depending on the language set.

The basic syntax is to write the target language after the code block markers.
Refer to the following chapters for available languages.

// CSS を記載する場合

``css
h1 
font-size: 24px;
font-weight: bold;
color: #ff7800

``

12. Syntax Highlighting (ANSI)

12-1. Discord Display

You can add color to text by using ANSI.

12-2. Discord Notation

You can add color to text using the format shown below.

u001b[スタイルm
u001b[背景色m
u001b[文字色m
u001b[スタイル;文字色;背景色;m

[0;31m--------- テキスト色 ---------
[30mグレー
[31mレッド
[32mライトグリーン
[33mイエロー
[34mブルー
[35mピンク
[36mシアン
[37mホワイト

[31m--------- 背景色 ---------
[40mブラック
[41m オレンジ
[42m グレー
[43m 42より薄い
[44m 43より薄い
[45m ブルー
[46m 44と同じぐらい
[47m ホワイト
[0mリセット

[31m--------- 文字装飾 ---------
[0m通常
[1m太字
[4m下線
12-3. About Special Characters (u001b)

Since the special character (u001b) is required, copy it from the link below.

12-4. Generation Generator

You can create it using the following page.

13. Languages Available in Code Blocks

Confirmed languages: 186

|     |Langage                 | Alias                                  |
| --- |----------------------- | -------------------------------------- |
| 0-9 | 1C                     | 1c                                     |
| --- |----------------------- | -------------------------------------- |
|  A  | ABNF                   | abnf                                   |
|     | Access logs            | accesslog                              |
|     | Ada                    | ada                                    |
|     | Arduino                | arduino, ino                           |
|     | ARM assembler          | armasm, arm                            |
|     | AVR assembler          | avrasm                                 |
|     | ActionScript           | actionscript, as                       |
|     | AngelScript            | angelscript, asc                       |
|     | Apache                 | apache, apacheconf                     |
|     | AppleScript            | applescript, osascript                 |
|     | Arcade                 | arcade                                 |
|     | AsciiDoc               | asciidoc, adoc                         |
|     | AspectJ                | aspectj                                |
|     | AutoHotkey             | autohotkey                             |
|     | AutoIt                 | autoit                                 |
|     | Awk                    | awk                                    |
| --- |----------------------- | -------------------------------------- |
|  B  | Bash                   | bash, sh, zsh                          |
|     | Basic                  | basic                                  |
|     | BNF                    | bnf                                    |
|     | Brainfuck              | brainfuck, bf                          |
| --- |----------------------- | -------------------------------------- |
|  C  | C#                    | csharp, cs                             |
|     | C                      | c, h                                   |
|     | C++                    | cpp, hpp, cc, hh, c++, h++, cxx, hxx   |
|     | C/AL                   | cal                                    |
|     | Cache Object Script    | cos, cls                               |
|     | CMake                  | cmake, cmake.in                        |
|     | Coq                    | coq                                    |
|     | CSP                    | csp                                    |
|     | CSS                    | css                                    |
|     | Cap’n Proto            | capnproto, capnp                       |
|     | Clojure                | clojure, clj                           |
|     | Clojure REPL           | clojure-repl                           |
|     | CoffeeScript           | coffeescript, coffee, cson, iced       |
|     | Crmsh                  | crmsh, crm, pcmk                       |
|     | Crystal                | crystal, cr                            |
|     | Ceylon                 | ceylon                                 |
|     | Clean                  | clean                                  |
| --- |----------------------- | -------------------------------------- |
|  D  | D                      | d                                      |
|     | Dart                   | dart                                   |
|     | Diff                   | diff, patch                            |
|     | Django                 | django, jinja                          |
|     | DNS Zone file          | dns, zone, bind                        |
|     | Dockerfile             | dockerfile, docker                     |
|     | DOS                    | dos, bat, cmd                          |
|     | dsconfig               | dsconfig                               |
|     | DTS (Device Tree)      | dts                                    |
|     | Dust                   | dust, dst                              |
| --- |----------------------- | -------------------------------------- |
|  E  | EBNF                   | ebnf                                   |
|     | Elixir                 | elixir                                 |
|     | Elm                    | elm                                    |
|     | Erlang                 | erlang, erl                            |
|     | ErLang-REPL            | erlang-repl                            |
|     | Excel                  | excel, xls, xlsx                       |
|     | Erb                    | erb                                    |
| --- |----------------------- | -------------------------------------- |
|  F  | F#                     | fsharp, fs, fsx, fsi, fsscript         |
|     | FIX                    | fix                                    |
|     | Flix                   | flix                                   |
|     | Fortran                | fortran, f90, f95                      |
| --- |----------------------- | -------------------------------------- |
|  G  | G-Code                 | gcode, nc                              |
|     | Gams                   | gams, gms                              |
|     | GAUSS                  | gauss, gss                             |
|     | Gherkin                | gherkin                                |
|     | Go                     | go, golang                             |
|     | Golo                   | golo, gololang                         |
|     | Gradle                 | gradle                                 |
|     | GraphQL                | graphql                                |
|     | Groovy                 | groovy                                 |
| --- |----------------------- | -------------------------------------- |
|  H  | HTML, XML              | xml, html, xhtml, rss, atom, xjb,      |
|     |                        | xsd, xsl, plist, svg                   |
|     | HTTP                   | http, https                            |
|     | Haml                   | haml                                   |
|     | Handlebars             | handlebars, hbs, html.hbs,             |
|     |                        | html.handlebars                        |
|     | Haskell                | haskell, hs                            |
|     | Haxe                   | haxe, hx                               |
|     | Hy                     | hy, hylang                             |
|     | HSP                    | hsp                                    |
| --- |----------------------- | -------------------------------------- |
|  I  | Ini, TOML              | ini, toml                              |
|     | Inform7                | inform7, i7                            |
|     | IRPF90                 | irpf90                                 |
|     | ISBL                   | isbl                                   |
| --- |----------------------- | -------------------------------------- |
|  J  | JSON                   | json                                   |
|     | Java                   | java, jsp                              |
|     | JavaScript             | javascript, js, jsx                    |
|     | Julia                  | julia, jl                              |
|     | Julia REPL             | julia-repl                             |
|     | JBoss CLI              | jboss-cli                              |
| --- |----------------------- | -------------------------------------- |
|  K  | Kotlin                 | kotlin, kt                             |
| --- |----------------------- | -------------------------------------- |
|  L  | LaTeX                  | tex                                    |
|     | Leaf                   | leaf                                   |
|     | Lasso                  | lasso, ls, lassoscript                 |
|     | Less                   | less                                   |
|     | LDIF                   | ldif                                   |
|     | Lisp                   | lisp                                   |
|     | LiveCode Server        | livecodeserver                         |
|     | LiveScript             | livescript, ls                         |
|     | Lua                    | lua                                    |
|     | LLVM                   | llvm                                   |
|     | LSL                    | lsl                                    |
| --- |----------------------- | -------------------------------------- |
|  M  | Makefile               | makefile, mk, mak, make                |
|     | Markdown               | markdown, md, mkdown, mkd              |
|     | Mathematica            | mathematica, mma, wl                   |
|     | Matlab                 | matlab                                 |
|     | Maxima                 | maxima                                 |
|     | Maya Embedded Language | mel                                    |
|     | Mercury                | mercury                                |
|     | MIPS Assembler         | mips, mipsasm                          |
|     | Mizar                  | mizar                                  |
|     | Mojolicious            | mojolicious                            |
|     | Monkey                 | monkey                                 |
|     | Moonscript             | moonscript, moon                       |
| --- |----------------------- | -------------------------------------- |
|  N  | N1QL                   | n1ql                                   |
|     | NSIS                   | nsis                                   |
|     | Nginx                  | nginx, nginxconf                       |
|     | Nim                    | nim, nimrod                            |
|     | NestedText             | nestedtext                             |
|     | Node.js REPL           | node-repl                              |
| --- |----------------------- | -------------------------------------- |
|  O  | OCaml                  | ocaml, ml                              |
|     | Objective C            | objectivec, mm, objc, obj-c, obj-c++   |
|     |                        | objective-c++                          |
|     | OpenSCAD               | openscad, scad                         |
|     | Oracle Rules Language  | ruleslanguage                          |
|     | Oxygene                | oxygene                                |
| --- |------------------------ | ------------------------------------- |
|  P  | PF                      | pf, pf.conf                           |
|     | PHP                     | php                                   |
|     | Parser3                 | parser3                               |
|     | Perl                    | perl, pl, pm                          |
|     | Plaintext               | plaintext, txt, text                  |
|     | Pony                    | pony                                  |
|     | PostgreSQL & PL/pgSQL   | pgsql, postgres, postgresql           |
|     | PowerShell              | powershell, ps, ps1                   |
|     | Processing              | processing                            |
|     | Prolog                  | prolog                                |
|     | Properties              | properties                            |
|     | Protocol Buffers        | proto, protobuf                       |
|     | Puppet                  | puppet, pp                            |
|     | Python                  | python, py, gyp                       |
|     | Python profiler results | profile                               |
|     | Python REPL             | python-repl, pycon                    |
|     | PHP templates           | php-template                          |
|     | PureBASIC               | purebasic                             |
| --- |------------------------ | ------------------------------------- |
|  Q  | QML                     | qml                                   |
| --- |------------------------ | ------------------------------------- |
|  R  | R                       | r                                     |
|     | ReasonML                | reasonml, re                          |
|     | RenderMan RIB           | rib                                   |
|     | RenderMan RSL           | rsl                                   |
|     | Roboconf                | graph, instances                      |
|     | Ruby                    | ruby, rb, gemspec, podspec, thor, irb |
|     | Rust                    | rust, rs                              |
|     | RouterOS                | routeros                              |
|     | RulesLanguage           | ruleslanguage                         |
| --- |------------------------ | ------------------------------------- |
|  S  | SAS                     | SAS, sas                              |
|     | SCSS                    | scss                                  |
|     | SQL                     | sql                                   |
|     | Scala                   | scala                                 |
|     | Scheme                  | scheme                                |
|     | Scilab                  | scilab, sci                           |
|     | Shell                   | shell, console                        |
|     | Smali                   | smali                                 |
|     | SML                     | sml, ml                               |
|     | Stan                    | stan, stanfuncs                       |
|     | Stata                   | stata                                 |
|     | Stylus                  | stylus, styl                          |
|     | SubUnit                 | subunit                               |
|     | Swift                   | swift                                 |
|     | SQF                     | sqf                                   |
| --- |------------------------ | ------------------------------------- |
|  T  | Tcl                     | tcl, tk                               |
|     | Test Anything Protocol  | tap                                   |
|     | Thrift                  | thrift                                |
|     | TP                      | tp                                    |
|     | Twig                    | twig, craftcms                        |
|     | TypeScript              | typescript, ts, tsx, mts, cts         |
|     | Tagger Script           | taggerscript                          |
|     | TAP                     | tap                                   |
| --- |------------------------ | ------------------------------------- |
|  V  | VB.Net                  | vbnet, vb                             |
|     | VBScript                | vbscript, vbs                         |
|     | VHDL                    | vhdl                                  |
|     | Vala                    | vala                                  | 
|     | Verilog                 | verilog, v                            |
|     | Vim Script              | vim                                   |
|     | VBScript-HTML           | vbscript-html                         |
| --- |------------------------ | ------------------------------------- |
|  W  | WebAssembly             | wasm                                  |
|     | Wren                    | wren                                  |
| --- |------------------------ | ------------------------------------- |
|  X  | X++                     | axapta, x++                           |
|     | x86 Assembly            | x86asm                                |
|     | XQuery                  | xquery, xpath, xq                     |
| --- |------------------------ | ------------------------------------- |
|  Y  | YAML                    | yml, yaml                             |
| --- |------------------------ | ------------------------------------- |
|  Z  | Zephir                  | zephir, zep                           |

#Discord
#DISCORD
#App
#RecommendedApp
#Game
#Lifestyle
#Useful


同じカテゴリの記事

八木 麻衣
トレンドリサーチャー 八木 麻衣
プロフィールを見る →

全記事の事実確認を担当。一次情報・公式発表・公開資料の三点を確認できない場合は公開を見送る判断をします。

おすすめの関連記事