17 Nov 2023



Beginner

Markdown uses fenced code blocks for syntax highlighting. You can specify the programming language after the opening backticks to enable syntax highlighting. Here are some common language identifiers used for code highlighting in Markdown:

  1. Bash/Shell

    ```bash
    
  2. C

    ```c
    
  3. C++

    ```cpp
    
  4. C#

    ```csharp
    
  5. CSS

    ```css
    
  6. Dart

    ```dart
    
  7. Docker

    ```docker
    
  8. Go

    ```go
    
  9. HTML

    ```html
    
  10. Java

    ```java
    
  11. JavaScript

    ```javascript
    
  12. JSON

    ```json
    
  13. Kotlin

    ```kotlin
    
  14. Markdown

    ```markdown
    
  15. Objective-C

    ```objective-c
    
  16. PHP

    ```php
    
  17. Python

    ```python
    
  18. Ruby

    ```ruby
    
  19. Rust

    ```rust
    
  20. Shell

    ```shell
    
  21. SQL

    ```sql
    
  22. Swift

    ```swift
    
  23. TypeScript

    ```typescript
    
  24. YAML

    ```yaml
    

These are just a few examples, and there are many more languages that Markdown supports for syntax highlighting. You can use the appropriate language identifier after the opening backticks to specify the language for your code block. If the specific language is not recognized, Markdown will often default to a generic code block without syntax highlighting.

markdown
code-highlighting