Closed
Description
I am starting to use Julia (http://julialang.org/) and I realized there was no support for it in Geany.
After some research I found a lexer for Julia in the pygments project (https://bitbucket.org/birkenfeld/pygments-main/src/) in the file ./pygments/lexers/julia.py
Based on the matlab template, the filetypes.Julia.conf
file looks like:
# For complete documentation of this file, please see Geany's main documentation
[styling=Matlab/Octave]
[keywords]
# all items must be in one line
# keywords from pygment lexer (http://pygments.org/)
primary=abstract baremodule begin bitstype break catch ccall const continue do else elseif end export for function global if immutable import importall in let local macro module quote return try type typealias using while
#secondary=exit whos edit load is isa isequal typeof tuple ntuple uid hash finalizer convert promote subtype typemin typemax realmin realmax sizeof eps promote_type method_exists applicable invoke dlopen dlsym system error throw assert new Inf Nan pi im
#identifiers=Bool Int Int8 Int16 Int32 Int64 Uint Uint8 Uint16 Uint32 Uint64 Float32 Float64 Complex64 Complex128 Any Nothing None
[settings]
# use builtin lexer for Matlab
lexer_filetype=Matlab/Octave
tag_parser=Matlab/Octave
# default extension used when saving files
extension=jl
# single comments, like # in this file
comment_single=#
# multiline comments
#comment_open=
#comment_close=
[build_settings]
# %f will be replaced by the complete filename
# %e will be replaced by the filename without extension
# (use only one of it at one time)
compiler=
run_cmd=julia "%f"
The matlab template does not support secondary keywords and identifiers (which are the types for Julia), so I commented it out. But with another template (C for instance) they may work.
Metadata
Assignees
Labels
No labels