Bear Tips: Syntax highlight over 20 code languages

Bear Tips: Syntax highlight over 20 code languages

We call Bear “a beautiful app for crafting notes and prose.” But did you know that includes code, too?

For starters, you can use Bear to write for the web and use Markdown to add styling like links, bold, italic, and lists, which is easier than writing straight HTML. You can preview your notes as they would appear on the web. Then, when you’re ready to publish, use the share sheet on a note to copy it to your clipboard as HTML, or export it to a file for sharing. You can also copy portions of a note as HTML, RTF, TXT, or Markdown.

However, Bear goes a bit further for developers. It can syntax highlight over two dozen languages, including:

  • HTML + CSS
  • JavaScript
  • Swift
  • Ruby
  • Python
  • see the full list below!

This makes Bear a great place to store and share code snippets, tinker with ideas, do some quick HTML or CSS editing, and more.

The full list

Check out all the languages Bear currently supports for syntax highlighting. Yes-there are more on the way!

  • Apache
  • C / C* C# — csharp
  • CoffeeScript — coffee
  • CSS
  • GO — golang
  • HTML
  • Java
  • Javascript — js
  • JSON
  • Lua
  • MATLAB — mat
  • Objective-C — objc
  • Perl
  • PHP
  • Python — py
  • R
  • Ruby
  • Scala — sc
  • SCSS
  • Shell — sh
  • SQL
  • Swift
  • Tex — latex
  • XML