# Syntax Highlighting for your Code

> Bear comes with syntax highlighting support for 200+ programming languages. Learn how to enable syntax highlighting for your code snippets and quickly paste them.

Source: https://bear.app/faq/show-syntax-highlighting-for-your-code-snippets-in-notes/

As in [GitHub Markdown Dialect][1], Bear supports code blocks and syntax highlighting for over 250 languages (listed below). You simply need to specify the programming language after the first block marker.

An example:

![](https://bear.app/faq/images/snippets_1.png)

## How to paste code snippets

If you are looking for a quick way to insert a code snippet with syntax highlighting into Bear, you can use this quick trick: 

* Copy the lines of code 
* Select a note in Bear
* Select the **Paste From Code** functionality, see below

### Mac

Right click and select `Paste From` &rarr; `Code`.

### iOS
Tap on the note and select `Paste From...` &rarr; `From Code` on the edit menu.


Some of the supported languages for syntax highlighting and their abbreviations:

* ABAP
* ActionScript
* ADA
* Apache
* APL
* AppleScript
* Arduino
* ARFF
* AsciiDoc
* ASP.NET - _aspnet_
* AutoHotkey
* AutoIt
* Bash
* BASIC
* Batch
* Bison
* Brainfuck
* Bro
* C / C++
* C# - _csharp_
* CoffeeScript - _coffee_
* Clojure - _clj_
* Crystal
* CSP
* CSS
* D
* Dart
* Diff
* Django/Jinja2 - _django_
* Docker
* Eiffel
* Elixir
* Elm
* ERB
* Erlang
* F# - _fsharp_
* Flow
* Fortran
* Fountain 
* GEDCOM
* Gherkin
* Git
* GLSL
* GraphQL
* Groovy
* GO - _golang_
* Haml
* Handlebars
* Haskell
* Haxe
* HTTP
* HTML
* Icon
* Inform 7 - _inform7_
* Ini
* Io
* J
* Java
* Javascript - _js_
* JSON
* Julia
* Keyman
* Kotlin
* Less
* Liquid
* Livescript
* LOLCODE
* Lua
* Makefile
* Markdown - _md_
* MATLAB - _mat_
* MEL
* Mizar
* Monkey
* NAJS
* NASM
* ngnix
* nim
* nix
* Objective-C - _objc_
* Ocam
* OpenCL
* Oz
* Pascal
* Perl
* PHP
* PL/SQL - _sql_ _plsql_
* PowerShell
* Prolog
* Pug
* Puppet
* Pure
* Python - _py_
* Q
* Qore - _qore_
* R
* React JSX - _jsx_
* Ren'py - _renpy_
* reST - _rest_
* Ruby
* Rust
* SAS
* SASS
* Scala - _sc_
* SCSS
* Scheme
* Shell - _sh_
* SmallTalk
* Smarty
* Swift
* TAP
* Tcl
* Textile
* Tex/Latex - _latex_
* Twig
* TypeScript
* VB.NET - _vbnet_
* Velocity
* Verilog
* VHDL
* vim
* Visual Basic - _visual-basic_
* WebAssembly - _wasm_
* Wiki markup - _wiki_
* Xeora
* Xojo
* XQuery
* XML
* YAML


[1]:	https://help.github.com/articles/creating-and-highlighting-code-blocks/
