mirror of
https://github.com/sharkdp/bat.git
synced 2025-03-15 15:18:45 +00:00
Add context to .ino configuration
This allows a user to search the README or the entire repository for "Arduino" to find the necessary configuration.
This commit is contained in:
parent
27f046ec03
commit
156dec2737
@ -598,7 +598,7 @@ Example configuration file:
|
|||||||
# Use italic text on the terminal (not supported on all terminals)
|
# Use italic text on the terminal (not supported on all terminals)
|
||||||
--italic-text=always
|
--italic-text=always
|
||||||
|
|
||||||
# Use C++ syntax for .ino files
|
# Use C++ syntax for Arduino .ino files
|
||||||
--map-syntax "*.ino:C++"
|
--map-syntax "*.ino:C++"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -522,7 +522,7 @@ export BAT_CONFIG_PATH="/path/to/bat.conf"
|
|||||||
# Use italic text on the terminal (not supported on all terminals)
|
# Use italic text on the terminal (not supported on all terminals)
|
||||||
--italic-text=always
|
--italic-text=always
|
||||||
|
|
||||||
# Use C++ syntax for .ino files
|
# Use C++ syntax for Arduino .ino files
|
||||||
--map-syntax "*.ino:C++"
|
--map-syntax "*.ino:C++"
|
||||||
|
|
||||||
# Use ".gitignore"-style highlighting for ".ignore" files
|
# Use ".gitignore"-style highlighting for ".ignore" files
|
||||||
|
@ -663,7 +663,7 @@ bat --generate-config-file
|
|||||||
# 터미널에서 이탤릭체 쓰기 (일부 터미널에서 미지원)
|
# 터미널에서 이탤릭체 쓰기 (일부 터미널에서 미지원)
|
||||||
--italic-text=always
|
--italic-text=always
|
||||||
|
|
||||||
# .ino 파일에 C++ 문법 쓰기
|
# Arduino .ino 파일에 C++ 문법 쓰기
|
||||||
--map-syntax "*.ino:C++"
|
--map-syntax "*.ino:C++"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -481,7 +481,7 @@ bat --generate-config-file
|
|||||||
# Использовать курсив (поддерживается не всеми терминалами)
|
# Использовать курсив (поддерживается не всеми терминалами)
|
||||||
--italic-text=always
|
--italic-text=always
|
||||||
|
|
||||||
# Использовать синтаксис C++ для всех .ino файлов
|
# Использовать синтаксис C++ для всех Arduino .ino файлов
|
||||||
--map-syntax "*.ino:C++"
|
--map-syntax "*.ino:C++"
|
||||||
|
|
||||||
# Использовать синтаксик Git Ignore для всех файлов .ignore
|
# Использовать синтаксик Git Ignore для всех файлов .ignore
|
||||||
|
@ -64,7 +64,7 @@ pub fn generate_config_file() -> bat::error::Result<()> {
|
|||||||
#--pager="less --RAW-CONTROL-CHARS --quit-if-one-screen --mouse"
|
#--pager="less --RAW-CONTROL-CHARS --quit-if-one-screen --mouse"
|
||||||
|
|
||||||
# Syntax mappings: map a certain filename pattern to a language.
|
# Syntax mappings: map a certain filename pattern to a language.
|
||||||
# Example 1: use the C++ syntax for .ino files
|
# Example 1: use the C++ syntax for Arduino .ino files
|
||||||
# Example 2: Use ".gitignore"-style highlighting for ".ignore" files
|
# Example 2: Use ".gitignore"-style highlighting for ".ignore" files
|
||||||
#--map-syntax "*.ino:C++"
|
#--map-syntax "*.ino:C++"
|
||||||
#--map-syntax ".ignore:Git Ignore"
|
#--map-syntax ".ignore:Git Ignore"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user