diff --git a/examples/simple.jl b/examples/simple.jl index b32a37e..9a0ec42 100644 --- a/examples/simple.jl +++ b/examples/simple.jl @@ -5,8 +5,7 @@ sv = GtkSourceView() win[] = sv buff = sv.buffer -langman = GtkSourceLanguageManager() -lang = GtkSourceWidget.language(langman,"julia") +lang = GtkSourceWidget.language(GtkSourceWidget.sourceLanguageManager,"julia1_10") buff.text = open("simple.jl","r") do f read(f,String) end diff --git a/src/GtkSourceWidget.jl b/src/GtkSourceWidget.jl index 5a90ce3..1c40dd0 100644 --- a/src/GtkSourceWidget.jl +++ b/src/GtkSourceWidget.jl @@ -265,8 +265,9 @@ function __init__() gboxed_cache_init() global sourceLanguageManager = GtkSourceLanguageManager() - GtkSourceWidget.set_search_path(sourceLanguageManager, - Any[joinpath(GtkSourceView_jll.artifact_dir, "share", "gtksourceview-5", "language-specs"), C_NULL]) + set_search_path(sourceLanguageManager, + Any[ joinpath(GtkSourceView_jll.artifact_dir, "share", "gtksourceview-5", "language-specs"), @__DIR__, C_NULL]) + set_search_path(GtkSourceStyleSchemeManagerLeaf(), Any[ joinpath(GtkSourceView_jll.artifact_dir, "share", "gtksourceview-5", "styles"), C_NULL] ) end end # module diff --git a/src/julia1_10.lang b/src/julia1_10.lang new file mode 100644 index 0000000..ed91c8d --- /dev/null +++ b/src/julia1_10.lang @@ -0,0 +1,431 @@ + + + + + + *.jl + # + #= + =# + + + + +