-
Notifications
You must be signed in to change notification settings - Fork 4
Syntax Highlighting
gholmann16 edited this page Jul 28, 2024
·
1 revision
Janus has a feature called syntax highlighting which essentially colors the different types of keywords in source code files in order to improve readability. It is set to off by default, but you can turn it on under the options menu. The syntax highlighting engine decides a language when you open a file, so if you are writing a new source file this feature currently will not work for you unless you reopen it.
Janus relies on the GtkSourceView4 library for its syntax highlighting, so all and only languages supported in the library are supported by the text editor. The following languages/file extensions are supported:
- desktop
- ini
- abnf
- ansforth94
- asp
- actionscript
- ada
- asciidoc
- automake
- bennugd
- bibtex
- bluespec
- boo
- c
- c-sharp
- cpp
- cpphdr
- chdr
- cg
- cmake
- cobol
- css
- csv
- cuda
- changelog
- commonlisp
- d
- dosbatch
- dpatch
- dtd
- dart
- def
- diff
- dtl
- docbook
- docker
- erb
- erb-html
- erb-js
- eiffel
- erlang
- fsharp
- fcl
- fish
- ftl
- forth
- fortran
- gap
- gdb-log
- gdscript
- genie
- go
- gradle
- dot
- groovy
- gtkrc
- html
- haddock
- haskell
- haxe
- idl
- idl-exelis
- imagej
- j
- jsdoc
- json
- jsx
- jade
- java
- js
- js-val
- js-expr
- js-fn
- js-lit
- js-mod
- js-st
- julia
- kotlin
- llvm
- latex
- lean
- less
- lex
- haskell-literate
- logtalk
- lua
- mxml
- makefile
- mallard
- markdown
- matlab
- maxima
- mediawiki
- meson
- modelica
- nsis
- nemerle
- netrexx
- ocl
- ocaml
- ooc
- objc
- objj
- octave
- opal
- opencl
- glsl
- php
- pascal
- perl
- pig
- powershell
- prolog
- proto
- puppet
- python3
- python
- r
- rpmspec
- ruby
- rust
- scss
- sparql
- spice
- sql
- star
- scala
- scheme
- scilab
- solidity
- sml
- sweave
- swift
- systemverilog
- toml
- tcl
- tera
- terraform
- texinfo
- thrift
- typescript
- typescript-jsx
- typescript-js-expr
- typescript-js-fn
- typescript-js-lit
- typescript-js-mod
- typescript-js-st
- typescript-type-expr
- typescript-type-gen
- typescript-type-lit
- vbnet
- vhdl
- vala
- verilog
- xml
- xslt
- yaml
- yara
- yacc
- awk
- gettext-translation
- gtk-doc
- libtool
- logcat
- m4
- pkgconfig
- rst
- sh
- t2t