gtksourceview4 3.2.9-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/COPYING.LIB +502 -0
- data/README.md +24 -0
- data/Rakefile +61 -0
- data/dependency-check/Rakefile +43 -0
- data/gtksourceview4.gemspec +45 -0
- data/lib/gtksourceview4.rb +56 -0
- data/lib/gtksourceview4/deprecated.rb +49 -0
- data/lib/gtksourceview4/loader.rb +49 -0
- data/lib/gtksourceview4/mark-attributes.rb +29 -0
- data/test/run-test.rb +62 -0
- data/test/test-mark-attributes.rb +26 -0
- data/test/test-source-gutter-renderer.rb +33 -0
- data/test/test-source-language-manager.rb +46 -0
- data/test/test-source-view.rb +55 -0
- data/vendor/local/bin/libgtksourceview-4-0.dll +0 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/completion-providers/words/gtksourcecompletionwords.h +72 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksource-enumtypes.h +107 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksource.h +67 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceautocleanups.h +63 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcebuffer.h +279 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletion.h +156 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletioncontext.h +102 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletioninfo.h +77 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionitem.h +92 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionproposal.h +126 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcecompletionprovider.h +166 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceencoding.h +74 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefile.h +195 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefileloader.h +140 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcefilesaver.h +168 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutter.h +93 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrenderer.h +272 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrendererpixbuf.h +91 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcegutterrenderertext.h +92 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceinit.h +40 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcelanguage.h +98 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcelanguagemanager.h +92 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemap.h +70 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemark.h +79 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcemarkattributes.h +112 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceprintcompositor.h +223 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceregion.h +127 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcesearchcontext.h +161 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcesearchsettings.h +100 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcespacedrawer.h +144 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyle.h +54 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestylescheme.h +119 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooser.h +66 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooserbutton.h +64 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschemechooserwidget.h +64 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcestyleschememanager.h +100 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcetag.h +54 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourcetypes.h +73 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceundomanager.h +90 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceutils.h +41 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceversion.h +578 -0
- data/vendor/local/include/gtksourceview-4/gtksourceview/gtksourceview.h +266 -0
- data/vendor/local/lib/girepository-1.0/GtkSource-4.typelib +0 -0
- data/vendor/local/lib/libgtksourceview-4.dll.a +0 -0
- data/vendor/local/lib/libgtksourceview-4.la +41 -0
- data/vendor/local/lib/pkgconfig/gtksourceview-4.pc +12 -0
- data/vendor/local/share/gir-1.0/GtkSource-4.gir +12999 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceBuffer.html +2421 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletion.html +1087 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionContext.html +402 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionInfo.html +207 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionItem.html +497 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionProposal.html +668 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionProvider.html +837 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceCompletionWords.html +343 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceEncoding.html +391 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFile.html +769 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFileLoader.html +780 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceFileSaver.html +965 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutter.html +438 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRenderer.html +1708 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRendererPixbuf.html +369 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceGutterRendererText.html +299 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceLanguage.html +579 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceLanguageManager.html +473 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMap.html +254 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMark.html +307 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceMarkAttributes.html +788 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourcePrintCompositor.html +2121 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceRegion.html +870 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSearchContext.html +1216 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSearchSettings.html +603 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceSpaceDrawer.html +671 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyle.html +433 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleScheme.html +396 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooser.html +214 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooserButton.html +127 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeChooserWidget.html +127 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceStyleSchemeManager.html +460 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceTag.html +179 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceUndoManager.html +460 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/GtkSourceView.html +2369 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/annexes.html +55 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/annotation-glossary.html +74 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-0.html +62 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-10.html +86 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-12.html +34 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-2.html +270 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-4.html +34 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-2-8.html +46 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-0.html +42 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-10.html +170 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-12.html +38 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-14.html +298 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-16.html +106 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-18.html +114 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-20.html +130 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-22.html +106 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-24.html +126 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-3-4.html +34 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-4-0.html +65 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-deprecated.html +30 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-index-full.html +2586 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/api-reference.html +174 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/completion.html +52 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/file-loading-and-saving.html +43 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/general.html +32 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-GtkSourceUtils.html +151 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-GtkSourceView-Initialization-and-Finalization.html +100 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0-Version-Information.html +511 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gtksourceview-4.0.devhelp2 +819 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/gutter.html +49 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/index.html +215 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/intro.html +56 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/lang-reference.html +946 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/lang-tutorial.html +652 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/main-classes.html +37 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/misc.html +52 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/object-tree.html +98 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/porting-guide-3-to-4.html +152 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/porting-guide.html +33 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/printing.html +32 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/search-and-replace.html +37 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/style-reference.html +305 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/style.css +483 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/styling.html +49 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/syntax-highlighting-reference.html +49 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/syntax-highlighting.html +37 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/gtksourceview-4.0/up.png +0 -0
- data/vendor/local/share/gtksourceview-4/language-specs/R.lang +2198 -0
- data/vendor/local/share/gtksourceview-4/language-specs/abnf.lang +109 -0
- data/vendor/local/share/gtksourceview-4/language-specs/actionscript.lang +267 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ada.lang +220 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ansforth94.lang +728 -0
- data/vendor/local/share/gtksourceview-4/language-specs/asp.lang +1096 -0
- data/vendor/local/share/gtksourceview-4/language-specs/automake.lang +329 -0
- data/vendor/local/share/gtksourceview-4/language-specs/awk.lang +137 -0
- data/vendor/local/share/gtksourceview-4/language-specs/bennugd.lang +266 -0
- data/vendor/local/share/gtksourceview-4/language-specs/bibtex.lang +120 -0
- data/vendor/local/share/gtksourceview-4/language-specs/bluespec.lang +187 -0
- data/vendor/local/share/gtksourceview-4/language-specs/boo.lang +256 -0
- data/vendor/local/share/gtksourceview-4/language-specs/c.lang +343 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cg.lang +231 -0
- data/vendor/local/share/gtksourceview-4/language-specs/changelog.lang +91 -0
- data/vendor/local/share/gtksourceview-4/language-specs/chdr.lang +50 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cmake.lang +817 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cobol.lang +646 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cpp.lang +119 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cpphdr.lang +41 -0
- data/vendor/local/share/gtksourceview-4/language-specs/csharp.lang +285 -0
- data/vendor/local/share/gtksourceview-4/language-specs/css.lang +2411 -0
- data/vendor/local/share/gtksourceview-4/language-specs/csv.lang +73 -0
- data/vendor/local/share/gtksourceview-4/language-specs/cuda.lang +281 -0
- data/vendor/local/share/gtksourceview-4/language-specs/d.lang +317 -0
- data/vendor/local/share/gtksourceview-4/language-specs/def.lang +261 -0
- data/vendor/local/share/gtksourceview-4/language-specs/desktop.lang +297 -0
- data/vendor/local/share/gtksourceview-4/language-specs/diff.lang +84 -0
- data/vendor/local/share/gtksourceview-4/language-specs/docbook.lang +475 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dosbatch.lang +166 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dot.lang +139 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dpatch.lang +47 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dtd.lang +139 -0
- data/vendor/local/share/gtksourceview-4/language-specs/dtl.lang +297 -0
- data/vendor/local/share/gtksourceview-4/language-specs/eiffel.lang +238 -0
- data/vendor/local/share/gtksourceview-4/language-specs/erlang.lang +262 -0
- data/vendor/local/share/gtksourceview-4/language-specs/fcl.lang +113 -0
- data/vendor/local/share/gtksourceview-4/language-specs/forth.lang +234 -0
- data/vendor/local/share/gtksourceview-4/language-specs/fortran.lang +710 -0
- data/vendor/local/share/gtksourceview-4/language-specs/fsharp.lang +324 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gap.lang +84 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gdb-log.lang +151 -0
- data/vendor/local/share/gtksourceview-4/language-specs/genie.lang +237 -0
- data/vendor/local/share/gtksourceview-4/language-specs/glsl.lang +482 -0
- data/vendor/local/share/gtksourceview-4/language-specs/go.lang +274 -0
- data/vendor/local/share/gtksourceview-4/language-specs/groovy.lang +330 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gtk-doc.lang +90 -0
- data/vendor/local/share/gtksourceview-4/language-specs/gtkrc.lang +115 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haddock.lang +161 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haskell-literate.lang +58 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haskell.lang +227 -0
- data/vendor/local/share/gtksourceview-4/language-specs/haxe.lang +237 -0
- data/vendor/local/share/gtksourceview-4/language-specs/html.lang +286 -0
- data/vendor/local/share/gtksourceview-4/language-specs/idl-exelis.lang +619 -0
- data/vendor/local/share/gtksourceview-4/language-specs/idl.lang +153 -0
- data/vendor/local/share/gtksourceview-4/language-specs/imagej.lang +783 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ini.lang +94 -0
- data/vendor/local/share/gtksourceview-4/language-specs/j.lang +239 -0
- data/vendor/local/share/gtksourceview-4/language-specs/jade.lang +248 -0
- data/vendor/local/share/gtksourceview-4/language-specs/java.lang +188 -0
- data/vendor/local/share/gtksourceview-4/language-specs/javascript.lang +354 -0
- data/vendor/local/share/gtksourceview-4/language-specs/json.lang +124 -0
- data/vendor/local/share/gtksourceview-4/language-specs/julia.lang +376 -0
- data/vendor/local/share/gtksourceview-4/language-specs/kotlin.lang +389 -0
- data/vendor/local/share/gtksourceview-4/language-specs/language.dtd +72 -0
- data/vendor/local/share/gtksourceview-4/language-specs/language.rng +372 -0
- data/vendor/local/share/gtksourceview-4/language-specs/language2.rng +481 -0
- data/vendor/local/share/gtksourceview-4/language-specs/latex.lang +636 -0
- data/vendor/local/share/gtksourceview-4/language-specs/less.lang +793 -0
- data/vendor/local/share/gtksourceview-4/language-specs/lex.lang +208 -0
- data/vendor/local/share/gtksourceview-4/language-specs/libtool.lang +55 -0
- data/vendor/local/share/gtksourceview-4/language-specs/llvm.lang +314 -0
- data/vendor/local/share/gtksourceview-4/language-specs/logcat.lang +107 -0
- data/vendor/local/share/gtksourceview-4/language-specs/lua.lang +301 -0
- data/vendor/local/share/gtksourceview-4/language-specs/m4.lang +1374 -0
- data/vendor/local/share/gtksourceview-4/language-specs/makefile.lang +190 -0
- data/vendor/local/share/gtksourceview-4/language-specs/mallard.lang +123 -0
- data/vendor/local/share/gtksourceview-4/language-specs/markdown.lang +401 -0
- data/vendor/local/share/gtksourceview-4/language-specs/matlab.lang +148 -0
- data/vendor/local/share/gtksourceview-4/language-specs/maxima.lang +1864 -0
- data/vendor/local/share/gtksourceview-4/language-specs/mediawiki.lang +326 -0
- data/vendor/local/share/gtksourceview-4/language-specs/meson.lang +132 -0
- data/vendor/local/share/gtksourceview-4/language-specs/modelica.lang +261 -0
- data/vendor/local/share/gtksourceview-4/language-specs/mxml.lang +64 -0
- data/vendor/local/share/gtksourceview-4/language-specs/nemerle.lang +262 -0
- data/vendor/local/share/gtksourceview-4/language-specs/netrexx.lang +318 -0
- data/vendor/local/share/gtksourceview-4/language-specs/nsis.lang +87 -0
- data/vendor/local/share/gtksourceview-4/language-specs/objc.lang +119 -0
- data/vendor/local/share/gtksourceview-4/language-specs/objj.lang +127 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ocaml.lang +301 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ocl.lang +138 -0
- data/vendor/local/share/gtksourceview-4/language-specs/octave.lang +1757 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ooc.lang +264 -0
- data/vendor/local/share/gtksourceview-4/language-specs/opal.lang +342 -0
- data/vendor/local/share/gtksourceview-4/language-specs/opencl.lang +599 -0
- data/vendor/local/share/gtksourceview-4/language-specs/pascal.lang +267 -0
- data/vendor/local/share/gtksourceview-4/language-specs/perl.lang +1044 -0
- data/vendor/local/share/gtksourceview-4/language-specs/php.lang +362 -0
- data/vendor/local/share/gtksourceview-4/language-specs/pig.lang +292 -0
- data/vendor/local/share/gtksourceview-4/language-specs/pkgconfig.lang +61 -0
- data/vendor/local/share/gtksourceview-4/language-specs/po.lang +93 -0
- data/vendor/local/share/gtksourceview-4/language-specs/prolog.lang +248 -0
- data/vendor/local/share/gtksourceview-4/language-specs/protobuf.lang +134 -0
- data/vendor/local/share/gtksourceview-4/language-specs/puppet.lang +696 -0
- data/vendor/local/share/gtksourceview-4/language-specs/python.lang +475 -0
- data/vendor/local/share/gtksourceview-4/language-specs/python3.lang +198 -0
- data/vendor/local/share/gtksourceview-4/language-specs/rpmspec.lang +215 -0
- data/vendor/local/share/gtksourceview-4/language-specs/rst.lang +141 -0
- data/vendor/local/share/gtksourceview-4/language-specs/ruby.lang +748 -0
- data/vendor/local/share/gtksourceview-4/language-specs/rust.lang +334 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scala.lang +383 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scheme.lang +301 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scilab.lang +208 -0
- data/vendor/local/share/gtksourceview-4/language-specs/scss.lang +878 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sh.lang +516 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sml.lang +200 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sparql.lang +451 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sql.lang +617 -0
- data/vendor/local/share/gtksourceview-4/language-specs/sweave.lang +66 -0
- data/vendor/local/share/gtksourceview-4/language-specs/swift.lang +440 -0
- data/vendor/local/share/gtksourceview-4/language-specs/systemverilog.lang +262 -0
- data/vendor/local/share/gtksourceview-4/language-specs/t2t.lang +149 -0
- data/vendor/local/share/gtksourceview-4/language-specs/tcl.lang +145 -0
- data/vendor/local/share/gtksourceview-4/language-specs/tera.lang +142 -0
- data/vendor/local/share/gtksourceview-4/language-specs/texinfo.lang +447 -0
- data/vendor/local/share/gtksourceview-4/language-specs/thrift.lang +266 -0
- data/vendor/local/share/gtksourceview-4/language-specs/toml.lang +282 -0
- data/vendor/local/share/gtksourceview-4/language-specs/vala.lang +411 -0
- data/vendor/local/share/gtksourceview-4/language-specs/vbnet.lang +247 -0
- data/vendor/local/share/gtksourceview-4/language-specs/verilog.lang +475 -0
- data/vendor/local/share/gtksourceview-4/language-specs/vhdl.lang +247 -0
- data/vendor/local/share/gtksourceview-4/language-specs/xml.lang +219 -0
- data/vendor/local/share/gtksourceview-4/language-specs/xslt.lang +120 -0
- data/vendor/local/share/gtksourceview-4/language-specs/yacc.lang +176 -0
- data/vendor/local/share/gtksourceview-4/language-specs/yaml.lang +213 -0
- data/vendor/local/share/gtksourceview-4/styles/classic.xml +122 -0
- data/vendor/local/share/gtksourceview-4/styles/cobalt.xml +150 -0
- data/vendor/local/share/gtksourceview-4/styles/kate.xml +171 -0
- data/vendor/local/share/gtksourceview-4/styles/oblivion.xml +133 -0
- data/vendor/local/share/gtksourceview-4/styles/solarized-dark.xml +103 -0
- data/vendor/local/share/gtksourceview-4/styles/solarized-light.xml +102 -0
- data/vendor/local/share/gtksourceview-4/styles/styles.rng +139 -0
- data/vendor/local/share/gtksourceview-4/styles/tango.xml +130 -0
- data/vendor/local/share/license/gtksourceview/AUTHORS +15 -0
- data/vendor/local/share/license/gtksourceview/COPYING +504 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/fur/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtksourceview-4.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtksourceview-4.mo +0 -0
- metadata +437 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>Gutter and Marks: GtkSourceView 4 Reference Manual</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
7
|
+
<link rel="home" href="index.html" title="GtkSourceView 4 Reference Manual">
|
8
|
+
<link rel="up" href="api-reference.html" title="Part II. API reference">
|
9
|
+
<link rel="prev" href="GtkSourceFileSaver.html" title="GtkSourceFileSaver">
|
10
|
+
<link rel="next" href="GtkSourceGutter.html" title="GtkSourceGutter">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.28.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><a accesskey="u" href="api-reference.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="p" href="GtkSourceFileSaver.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="GtkSourceGutter.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
|
+
</tr></table>
|
22
|
+
<div class="chapter">
|
23
|
+
<div class="titlepage"><div><div><h2 class="title">
|
24
|
+
<a name="gutter"></a>Gutter and Marks</h2></div></div></div>
|
25
|
+
<div class="toc"><dl class="toc">
|
26
|
+
<dt>
|
27
|
+
<span class="refentrytitle"><a href="GtkSourceGutter.html">GtkSourceGutter</a></span><span class="refpurpose"> — Gutter object for GtkSourceView</span>
|
28
|
+
</dt>
|
29
|
+
<dt>
|
30
|
+
<span class="refentrytitle"><a href="GtkSourceGutterRenderer.html">GtkSourceGutterRenderer</a></span><span class="refpurpose"> — Gutter cell renderer</span>
|
31
|
+
</dt>
|
32
|
+
<dt>
|
33
|
+
<span class="refentrytitle"><a href="GtkSourceGutterRendererPixbuf.html">GtkSourceGutterRendererPixbuf</a></span><span class="refpurpose"> — Renders a pixbuf in the gutter</span>
|
34
|
+
</dt>
|
35
|
+
<dt>
|
36
|
+
<span class="refentrytitle"><a href="GtkSourceGutterRendererText.html">GtkSourceGutterRendererText</a></span><span class="refpurpose"> — Renders text in the gutter</span>
|
37
|
+
</dt>
|
38
|
+
<dt>
|
39
|
+
<span class="refentrytitle"><a href="GtkSourceMark.html">GtkSourceMark</a></span><span class="refpurpose"> — Mark object for GtkSourceBuffer</span>
|
40
|
+
</dt>
|
41
|
+
<dt>
|
42
|
+
<span class="refentrytitle"><a href="GtkSourceMarkAttributes.html">GtkSourceMarkAttributes</a></span><span class="refpurpose"> — The source mark attributes object</span>
|
43
|
+
</dt>
|
44
|
+
</dl></div>
|
45
|
+
</div>
|
46
|
+
<div class="footer">
|
47
|
+
<hr>Generated by GTK-Doc V1.28.1</div>
|
48
|
+
</body>
|
49
|
+
</html>
|
Binary file
|
@@ -0,0 +1,215 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>GtkSourceView 4 Reference Manual: GtkSourceView 4 Reference Manual</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
7
|
+
<link rel="home" href="index.html" title="GtkSourceView 4 Reference Manual">
|
8
|
+
<link rel="next" href="intro.html" title="Part I. Introduction">
|
9
|
+
<meta name="generator" content="GTK-Doc V1.28.1 (XML mode)">
|
10
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
11
|
+
</head>
|
12
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
13
|
+
<div class="book">
|
14
|
+
<div class="titlepage">
|
15
|
+
<div>
|
16
|
+
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">GtkSourceView 4 Reference Manual</p></th></tr></table></div>
|
17
|
+
<div><p class="releaseinfo">for GtkSourceView 4.0.2</p></div>
|
18
|
+
</div>
|
19
|
+
<hr>
|
20
|
+
</div>
|
21
|
+
<div class="toc"><dl class="toc">
|
22
|
+
<dt><span class="part"><a href="intro.html">I. Introduction</a></span></dt>
|
23
|
+
<dt><span class="part"><a href="api-reference.html">II. API reference</a></span></dt>
|
24
|
+
<dd><dl>
|
25
|
+
<dt><span class="chapter"><a href="general.html">General</a></span></dt>
|
26
|
+
<dd><dl><dt>
|
27
|
+
<span class="refentrytitle"><a href="gtksourceview-4.0-GtkSourceView-Initialization-and-Finalization.html">GtkSourceView Initialization and Finalization</a></span><span class="refpurpose"></span>
|
28
|
+
</dt></dl></dd>
|
29
|
+
<dt><span class="chapter"><a href="main-classes.html">Main Classes</a></span></dt>
|
30
|
+
<dd><dl>
|
31
|
+
<dt>
|
32
|
+
<span class="refentrytitle"><a href="GtkSourceBuffer.html">GtkSourceBuffer</a></span><span class="refpurpose"> — Subclass of <span class="type">GtkTextBuffer</span></span>
|
33
|
+
</dt>
|
34
|
+
<dt>
|
35
|
+
<span class="refentrytitle"><a href="GtkSourceView.html">GtkSourceView</a></span><span class="refpurpose"> — Subclass of <span class="type">GtkTextView</span></span>
|
36
|
+
</dt>
|
37
|
+
</dl></dd>
|
38
|
+
<dt><span class="chapter"><a href="syntax-highlighting.html">Syntax Highlighting</a></span></dt>
|
39
|
+
<dd><dl>
|
40
|
+
<dt>
|
41
|
+
<span class="refentrytitle"><a href="GtkSourceLanguage.html">GtkSourceLanguage</a></span><span class="refpurpose"> — Represents a syntax highlighted language</span>
|
42
|
+
</dt>
|
43
|
+
<dt>
|
44
|
+
<span class="refentrytitle"><a href="GtkSourceLanguageManager.html">GtkSourceLanguageManager</a></span><span class="refpurpose"> — Provides access to GtkSourceLanguages</span>
|
45
|
+
</dt>
|
46
|
+
</dl></dd>
|
47
|
+
<dt><span class="chapter"><a href="styling.html">Styling</a></span></dt>
|
48
|
+
<dd><dl>
|
49
|
+
<dt>
|
50
|
+
<span class="refentrytitle"><a href="GtkSourceStyle.html">GtkSourceStyle</a></span><span class="refpurpose"> — Represents a style</span>
|
51
|
+
</dt>
|
52
|
+
<dt>
|
53
|
+
<span class="refentrytitle"><a href="GtkSourceStyleScheme.html">GtkSourceStyleScheme</a></span><span class="refpurpose"> — Controls the appearance of GtkSourceView</span>
|
54
|
+
</dt>
|
55
|
+
<dt>
|
56
|
+
<span class="refentrytitle"><a href="GtkSourceStyleSchemeManager.html">GtkSourceStyleSchemeManager</a></span><span class="refpurpose"> — Provides access to GtkSourceStyleSchemes</span>
|
57
|
+
</dt>
|
58
|
+
<dt>
|
59
|
+
<span class="refentrytitle"><a href="GtkSourceStyleSchemeChooser.html">GtkSourceStyleSchemeChooser</a></span><span class="refpurpose"> — Interface implemented by widgets for choosing style schemes</span>
|
60
|
+
</dt>
|
61
|
+
<dt>
|
62
|
+
<span class="refentrytitle"><a href="GtkSourceStyleSchemeChooserButton.html">GtkSourceStyleSchemeChooserButton</a></span><span class="refpurpose"> — A button to launch a style scheme selection dialog</span>
|
63
|
+
</dt>
|
64
|
+
<dt>
|
65
|
+
<span class="refentrytitle"><a href="GtkSourceStyleSchemeChooserWidget.html">GtkSourceStyleSchemeChooserWidget</a></span><span class="refpurpose"> — A widget for choosing style schemes</span>
|
66
|
+
</dt>
|
67
|
+
</dl></dd>
|
68
|
+
<dt><span class="chapter"><a href="completion.html">Completion</a></span></dt>
|
69
|
+
<dd><dl>
|
70
|
+
<dt>
|
71
|
+
<span class="refentrytitle"><a href="GtkSourceCompletion.html">GtkSourceCompletion</a></span><span class="refpurpose"> — Main Completion Object</span>
|
72
|
+
</dt>
|
73
|
+
<dt>
|
74
|
+
<span class="refentrytitle"><a href="GtkSourceCompletionContext.html">GtkSourceCompletionContext</a></span><span class="refpurpose"> — The context of a completion</span>
|
75
|
+
</dt>
|
76
|
+
<dt>
|
77
|
+
<span class="refentrytitle"><a href="GtkSourceCompletionInfo.html">GtkSourceCompletionInfo</a></span><span class="refpurpose"> — Calltips object</span>
|
78
|
+
</dt>
|
79
|
+
<dt>
|
80
|
+
<span class="refentrytitle"><a href="GtkSourceCompletionItem.html">GtkSourceCompletionItem</a></span><span class="refpurpose"> — Simple implementation of GtkSourceCompletionProposal</span>
|
81
|
+
</dt>
|
82
|
+
<dt>
|
83
|
+
<span class="refentrytitle"><a href="GtkSourceCompletionProposal.html">GtkSourceCompletionProposal</a></span><span class="refpurpose"> — Completion proposal interface</span>
|
84
|
+
</dt>
|
85
|
+
<dt>
|
86
|
+
<span class="refentrytitle"><a href="GtkSourceCompletionProvider.html">GtkSourceCompletionProvider</a></span><span class="refpurpose"> — Completion provider interface</span>
|
87
|
+
</dt>
|
88
|
+
<dt>
|
89
|
+
<span class="refentrytitle"><a href="GtkSourceCompletionWords.html">GtkSourceCompletionWords</a></span><span class="refpurpose"> — A GtkSourceCompletionProvider for the completion of words</span>
|
90
|
+
</dt>
|
91
|
+
</dl></dd>
|
92
|
+
<dt><span class="chapter"><a href="file-loading-and-saving.html">File Loading and Saving</a></span></dt>
|
93
|
+
<dd><dl>
|
94
|
+
<dt>
|
95
|
+
<span class="refentrytitle"><a href="GtkSourceEncoding.html">GtkSourceEncoding</a></span><span class="refpurpose"> — Character encoding</span>
|
96
|
+
</dt>
|
97
|
+
<dt>
|
98
|
+
<span class="refentrytitle"><a href="GtkSourceFile.html">GtkSourceFile</a></span><span class="refpurpose"> — On-disk representation of a GtkSourceBuffer</span>
|
99
|
+
</dt>
|
100
|
+
<dt>
|
101
|
+
<span class="refentrytitle"><a href="GtkSourceFileLoader.html">GtkSourceFileLoader</a></span><span class="refpurpose"> — Load a file into a GtkSourceBuffer</span>
|
102
|
+
</dt>
|
103
|
+
<dt>
|
104
|
+
<span class="refentrytitle"><a href="GtkSourceFileSaver.html">GtkSourceFileSaver</a></span><span class="refpurpose"> — Save a GtkSourceBuffer into a file</span>
|
105
|
+
</dt>
|
106
|
+
</dl></dd>
|
107
|
+
<dt><span class="chapter"><a href="gutter.html">Gutter and Marks</a></span></dt>
|
108
|
+
<dd><dl>
|
109
|
+
<dt>
|
110
|
+
<span class="refentrytitle"><a href="GtkSourceGutter.html">GtkSourceGutter</a></span><span class="refpurpose"> — Gutter object for GtkSourceView</span>
|
111
|
+
</dt>
|
112
|
+
<dt>
|
113
|
+
<span class="refentrytitle"><a href="GtkSourceGutterRenderer.html">GtkSourceGutterRenderer</a></span><span class="refpurpose"> — Gutter cell renderer</span>
|
114
|
+
</dt>
|
115
|
+
<dt>
|
116
|
+
<span class="refentrytitle"><a href="GtkSourceGutterRendererPixbuf.html">GtkSourceGutterRendererPixbuf</a></span><span class="refpurpose"> — Renders a pixbuf in the gutter</span>
|
117
|
+
</dt>
|
118
|
+
<dt>
|
119
|
+
<span class="refentrytitle"><a href="GtkSourceGutterRendererText.html">GtkSourceGutterRendererText</a></span><span class="refpurpose"> — Renders text in the gutter</span>
|
120
|
+
</dt>
|
121
|
+
<dt>
|
122
|
+
<span class="refentrytitle"><a href="GtkSourceMark.html">GtkSourceMark</a></span><span class="refpurpose"> — Mark object for GtkSourceBuffer</span>
|
123
|
+
</dt>
|
124
|
+
<dt>
|
125
|
+
<span class="refentrytitle"><a href="GtkSourceMarkAttributes.html">GtkSourceMarkAttributes</a></span><span class="refpurpose"> — The source mark attributes object</span>
|
126
|
+
</dt>
|
127
|
+
</dl></dd>
|
128
|
+
<dt><span class="chapter"><a href="printing.html">Printing</a></span></dt>
|
129
|
+
<dd><dl><dt>
|
130
|
+
<span class="refentrytitle"><a href="GtkSourcePrintCompositor.html">GtkSourcePrintCompositor</a></span><span class="refpurpose"> — Compose a GtkSourceBuffer for printing</span>
|
131
|
+
</dt></dl></dd>
|
132
|
+
<dt><span class="chapter"><a href="search-and-replace.html">Search and Replace</a></span></dt>
|
133
|
+
<dd><dl>
|
134
|
+
<dt>
|
135
|
+
<span class="refentrytitle"><a href="GtkSourceSearchContext.html">GtkSourceSearchContext</a></span><span class="refpurpose"> — Search context</span>
|
136
|
+
</dt>
|
137
|
+
<dt>
|
138
|
+
<span class="refentrytitle"><a href="GtkSourceSearchSettings.html">GtkSourceSearchSettings</a></span><span class="refpurpose"> — Search settings</span>
|
139
|
+
</dt>
|
140
|
+
</dl></dd>
|
141
|
+
<dt><span class="chapter"><a href="misc.html">Misc</a></span></dt>
|
142
|
+
<dd><dl>
|
143
|
+
<dt>
|
144
|
+
<span class="refentrytitle"><a href="GtkSourceMap.html">GtkSourceMap</a></span><span class="refpurpose"> — Widget that displays a map for a specific <span class="type">GtkSourceView</span></span>
|
145
|
+
</dt>
|
146
|
+
<dt>
|
147
|
+
<span class="refentrytitle"><a href="GtkSourceRegion.html">GtkSourceRegion</a></span><span class="refpurpose"> — Region utility</span>
|
148
|
+
</dt>
|
149
|
+
<dt>
|
150
|
+
<span class="refentrytitle"><a href="GtkSourceSpaceDrawer.html">GtkSourceSpaceDrawer</a></span><span class="refpurpose"> — Represent white space characters with symbols</span>
|
151
|
+
</dt>
|
152
|
+
<dt>
|
153
|
+
<span class="refentrytitle"><a href="GtkSourceTag.html">GtkSourceTag</a></span><span class="refpurpose"> — A tag that can be applied to text in a GtkSourceBuffer</span>
|
154
|
+
</dt>
|
155
|
+
<dt>
|
156
|
+
<span class="refentrytitle"><a href="GtkSourceUndoManager.html">GtkSourceUndoManager</a></span><span class="refpurpose"> — Undo manager interface for GtkSourceView</span>
|
157
|
+
</dt>
|
158
|
+
<dt>
|
159
|
+
<span class="refentrytitle"><a href="gtksourceview-4.0-GtkSourceUtils.html">GtkSourceUtils</a></span><span class="refpurpose"> — Utility functions</span>
|
160
|
+
</dt>
|
161
|
+
<dt>
|
162
|
+
<span class="refentrytitle"><a href="gtksourceview-4.0-Version-Information.html">Version Information</a></span><span class="refpurpose"> — Macros and functions to check the GtkSourceView version</span>
|
163
|
+
</dt>
|
164
|
+
</dl></dd>
|
165
|
+
</dl></dd>
|
166
|
+
<dt><span class="part"><a href="syntax-highlighting-reference.html">III. Syntax highlighting reference</a></span></dt>
|
167
|
+
<dd><dl>
|
168
|
+
<dt>
|
169
|
+
<span class="refentrytitle"><a href="lang-tutorial.html">Language Definition v2.0 Tutorial</a></span><span class="refpurpose"> —
|
170
|
+
Guide to the GtkSourceView language definition file format
|
171
|
+
</span>
|
172
|
+
</dt>
|
173
|
+
<dt>
|
174
|
+
<span class="refentrytitle"><a href="lang-reference.html">Language Definition v2.0 Reference</a></span><span class="refpurpose"> —
|
175
|
+
Reference to the GtkSourceView language definition file format
|
176
|
+
</span>
|
177
|
+
</dt>
|
178
|
+
<dt>
|
179
|
+
<span class="refentrytitle"><a href="style-reference.html">Style Scheme Definition Reference</a></span><span class="refpurpose"> —
|
180
|
+
Reference to the GtkSourceView style scheme definition file format
|
181
|
+
</span>
|
182
|
+
</dt>
|
183
|
+
</dl></dd>
|
184
|
+
<dt><span class="part"><a href="porting-guide.html">IV. Porting Guide</a></span></dt>
|
185
|
+
<dd><dl><dt><span class="chapter"><a href="porting-guide-3-to-4.html">GtkSourceView 3 -> 4 Porting Guide</a></span></dt></dl></dd>
|
186
|
+
<dt><span class="part"><a href="annexes.html">V. Annexes</a></span></dt>
|
187
|
+
<dd><dl>
|
188
|
+
<dt><span class="chapter"><a href="object-tree.html">Object Hierarchy</a></span></dt>
|
189
|
+
<dt><span class="glossary"><a href="annotation-glossary.html">Annotation Glossary</a></span></dt>
|
190
|
+
<dt><span class="index"><a href="api-index-full.html">Index of all symbols</a></span></dt>
|
191
|
+
<dt><span class="index"><a href="api-index-deprecated.html">Index of deprecated symbols</a></span></dt>
|
192
|
+
<dt><span class="index"><a href="api-index-2-0.html">Index of new symbols in 2.0</a></span></dt>
|
193
|
+
<dt><span class="index"><a href="api-index-2-2.html">Index of new symbols in 2.2</a></span></dt>
|
194
|
+
<dt><span class="index"><a href="api-index-2-4.html">Index of new symbols in 2.4</a></span></dt>
|
195
|
+
<dt><span class="index"><a href="api-index-2-8.html">Index of new symbols in 2.8</a></span></dt>
|
196
|
+
<dt><span class="index"><a href="api-index-2-10.html">Index of new symbols in 2.10</a></span></dt>
|
197
|
+
<dt><span class="index"><a href="api-index-2-12.html">Index of new symbols in 2.12</a></span></dt>
|
198
|
+
<dt><span class="index"><a href="api-index-3-0.html">Index of new symbols in 3.0</a></span></dt>
|
199
|
+
<dt><span class="index"><a href="api-index-3-4.html">Index of new symbols in 3.4</a></span></dt>
|
200
|
+
<dt><span class="index"><a href="api-index-3-10.html">Index of new symbols in 3.10</a></span></dt>
|
201
|
+
<dt><span class="index"><a href="api-index-3-12.html">Index of new symbols in 3.12</a></span></dt>
|
202
|
+
<dt><span class="index"><a href="api-index-3-14.html">Index of new symbols in 3.14</a></span></dt>
|
203
|
+
<dt><span class="index"><a href="api-index-3-16.html">Index of new symbols in 3.16</a></span></dt>
|
204
|
+
<dt><span class="index"><a href="api-index-3-18.html">Index of new symbols in 3.18</a></span></dt>
|
205
|
+
<dt><span class="index"><a href="api-index-3-20.html">Index of new symbols in 3.20</a></span></dt>
|
206
|
+
<dt><span class="index"><a href="api-index-3-22.html">Index of new symbols in 3.22</a></span></dt>
|
207
|
+
<dt><span class="index"><a href="api-index-3-24.html">Index of new symbols in 3.24</a></span></dt>
|
208
|
+
<dt><span class="index"><a href="api-index-4-0.html">Index of new symbols in 4.0</a></span></dt>
|
209
|
+
</dl></dd>
|
210
|
+
</dl></div>
|
211
|
+
</div>
|
212
|
+
<div class="footer">
|
213
|
+
<hr>Generated by GTK-Doc V1.28.1</div>
|
214
|
+
</body>
|
215
|
+
</html>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>Part I. Introduction: GtkSourceView 4 Reference Manual</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
7
|
+
<link rel="home" href="index.html" title="GtkSourceView 4 Reference Manual">
|
8
|
+
<link rel="up" href="index.html" title="GtkSourceView 4 Reference Manual">
|
9
|
+
<link rel="prev" href="index.html" title="GtkSourceView 4 Reference Manual">
|
10
|
+
<link rel="next" href="api-reference.html" title="Part II. API reference">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.28.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
|
19
|
+
<td><a accesskey="p" href="index.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="api-reference.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
|
+
</tr></table>
|
22
|
+
<div class="part">
|
23
|
+
<div class="titlepage"><div><div><h1 class="title">
|
24
|
+
<a name="intro"></a>Part I. Introduction</h1></div></div></div>
|
25
|
+
<p>
|
26
|
+
GtkSourceView is a <a class="ulink" href="https://www.gnome.org/" target="_top">GNOME</a> library
|
27
|
+
that extends GtkTextView, the standard GTK+ widget for multiline text
|
28
|
+
editing. GtkSourceView adds support for syntax highlighting, undo/redo, file
|
29
|
+
loading and saving, search and replace, a completion system, printing,
|
30
|
+
displaying line numbers, and other features typical of a source code editor.
|
31
|
+
</p>
|
32
|
+
<p>
|
33
|
+
See the <a class="ulink" href="https://wiki.gnome.org/Projects/GtkSourceView" target="_top">GtkSourceView website</a>.
|
34
|
+
</p>
|
35
|
+
<p>
|
36
|
+
GtkSourceView 4 depends on GTK+ 3.
|
37
|
+
</p>
|
38
|
+
<div class="refsect1">
|
39
|
+
<a name="id-1.2.5"></a><h2>pkg-config name</h2>
|
40
|
+
<p>
|
41
|
+
For GtkSourceView 4, the pkg-config name is:
|
42
|
+
<code class="code">gtksourceview-4</code>
|
43
|
+
</p>
|
44
|
+
<p>
|
45
|
+
To compile a program that uses GtkSourceView 4, you
|
46
|
+
can for example use the following command:
|
47
|
+
</p>
|
48
|
+
<p>
|
49
|
+
<code class="code">$ gcc hello.c `pkg-config --cflags --libs gtksourceview-4` -o hello</code>
|
50
|
+
</p>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
<div class="footer">
|
54
|
+
<hr>Generated by GTK-Doc V1.28.1</div>
|
55
|
+
</body>
|
56
|
+
</html>
|
@@ -0,0 +1,946 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>Language Definition v2.0 Reference: GtkSourceView 4 Reference Manual</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
|
7
|
+
<link rel="home" href="index.html" title="GtkSourceView 4 Reference Manual">
|
8
|
+
<link rel="up" href="syntax-highlighting-reference.html" title="Part III. Syntax highlighting reference">
|
9
|
+
<link rel="prev" href="lang-tutorial.html" title="Language Definition v2.0 Tutorial">
|
10
|
+
<link rel="next" href="style-reference.html" title="Style Scheme Definition Reference">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.28.1 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
+
</head>
|
14
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts"></td>
|
17
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
18
|
+
<td><a accesskey="u" href="syntax-highlighting-reference.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
19
|
+
<td><a accesskey="p" href="lang-tutorial.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
20
|
+
<td><a accesskey="n" href="style-reference.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
21
|
+
</tr></table>
|
22
|
+
<div class="refentry">
|
23
|
+
<a name="lang-reference"></a><div class="titlepage"></div>
|
24
|
+
<div class="refnamediv"><table width="100%"><tr>
|
25
|
+
<td valign="top">
|
26
|
+
<h2><span class="refentrytitle">Language Definition v2.0 Reference</span></h2>
|
27
|
+
<p>Language Definition v2.0 Reference —
|
28
|
+
Reference to the GtkSourceView language definition file format
|
29
|
+
</p>
|
30
|
+
</td>
|
31
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
32
|
+
</tr></table></div>
|
33
|
+
<div class="refsect1">
|
34
|
+
<a name="id-1.4.3.3"></a><h2>Overview</h2>
|
35
|
+
<div class="note"><p>
|
36
|
+
The version 2 here refers to the language definition file format,
|
37
|
+
not to the version of GtkSourceView. This reference is suitable
|
38
|
+
for GtkSourceView 2, 3 and 4.
|
39
|
+
</p></div>
|
40
|
+
<p>
|
41
|
+
This is an overview of the Language Definition XML format, describing the
|
42
|
+
meaning and usage of every element and attribute. The formal definition is
|
43
|
+
stored in the RelaxNG schema file <code class="filename">language2.rng</code> which
|
44
|
+
should be installed on your system in the directory
|
45
|
+
<code class="filename">${PREFIX}/share/gtksourceview-4/</code> (where
|
46
|
+
<code class="filename">${PREFIX}</code> can be <code class="filename">/usr/</code> or
|
47
|
+
<code class="filename">/usr/local/</code> if you have installed from source.
|
48
|
+
</p>
|
49
|
+
<p>
|
50
|
+
The preinstalled language files are located in
|
51
|
+
<code class="filename">${PREFIX}/share/gtksourceview-4/language-specs/</code>. Custom
|
52
|
+
user languages are usually placed in
|
53
|
+
<code class="filename">~/.local/share/gtksourceview-4/language-specs/</code>. Note:
|
54
|
+
replace 4 with 2.0 or 3.0 in the path for GtkSourceView version
|
55
|
+
2 or version 3.
|
56
|
+
</p>
|
57
|
+
</div>
|
58
|
+
<div class="refsect1">
|
59
|
+
<a name="id-1.4.3.4"></a><h2>Some advices</h2>
|
60
|
+
<p>
|
61
|
+
The easiest way to start a new language definition is to copy a preinstalled
|
62
|
+
language definition from a language that has similar constructs as the one you
|
63
|
+
want to write a specification for. You can copy and rename a file from the
|
64
|
+
systems directory to the local user one (create the directory if it doesn't
|
65
|
+
exist yet) and edit the file accordingly.
|
66
|
+
</p>
|
67
|
+
<p>
|
68
|
+
The important thing you need to change are the <code class="code">id</code> and
|
69
|
+
<code class="code">name</code> of the language and the metadata properties
|
70
|
+
<code class="code">mimetypes</code> and <code class="code">globs</code> in the language spec. These
|
71
|
+
should resemble your new language. It might be that your files do not have an
|
72
|
+
appropriate mimetype associated yet. You can either in that case leave it
|
73
|
+
empty, or add a new mimetype (see below).
|
74
|
+
</p>
|
75
|
+
<p>
|
76
|
+
If for some reason your language spec doesn't show up in an application like
|
77
|
+
gedit, it might be a good idea to start the application from a terminal window
|
78
|
+
and see if any errors/warnings appear for your language file. This usually
|
79
|
+
gives good clues what's wrong with the specification. Note that you need to
|
80
|
+
restart the application to take into account changes in a language definition
|
81
|
+
file.
|
82
|
+
</p>
|
83
|
+
</div>
|
84
|
+
<div class="refsect1">
|
85
|
+
<a name="id-1.4.3.5"></a><h2>Conventions</h2>
|
86
|
+
<p>
|
87
|
+
It is better to follow the following conventions, especially if you want to
|
88
|
+
contribute upstream, and get your language definition file included in
|
89
|
+
GtkSourceView.
|
90
|
+
</p>
|
91
|
+
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
92
|
+
<li class="listitem"><p>
|
93
|
+
Indentation: 2 spaces.
|
94
|
+
</p></li>
|
95
|
+
<li class="listitem"><p>
|
96
|
+
Have the main context at the bottom.
|
97
|
+
</p></li>
|
98
|
+
<li class="listitem"><p>
|
99
|
+
Use references to def.lang.
|
100
|
+
</p></li>
|
101
|
+
<li class="listitem"><p>
|
102
|
+
Add an example in tests/syntax-highlighting/.
|
103
|
+
</p></li>
|
104
|
+
<li class="listitem"><p>
|
105
|
+
LGPL v2.1+ license (copy/paste the license header from c.lang, for
|
106
|
+
example).
|
107
|
+
</p></li>
|
108
|
+
<li class="listitem"><p>
|
109
|
+
Add the e-mail address of the language definition file author(s).
|
110
|
+
</p></li>
|
111
|
+
<li class="listitem"><p>
|
112
|
+
Refer to the HACKING file for submitting your language definition
|
113
|
+
file upstream. If the file is not included upstream, you can also
|
114
|
+
add the language definition file to the GtkSourceView wiki, so
|
115
|
+
users can easily find it.
|
116
|
+
</p></li>
|
117
|
+
</ul></div>
|
118
|
+
</div>
|
119
|
+
<div class="refsect1">
|
120
|
+
<a name="id-1.4.3.6"></a><h2>Tag <code class="code"><language></code>
|
121
|
+
</h2>
|
122
|
+
<p>
|
123
|
+
The root element for Language Definition files.
|
124
|
+
</p>
|
125
|
+
<p>
|
126
|
+
Contained elements:
|
127
|
+
<span class="simplelist"><code class="code"><metadata></code> (optional), <code class="code"><styles></code> (optional), <code class="code"><default-regex-options></code> (optional), <code class="code"><keyword-char-class></code> (optional), <code class="code"><definitions></code> (mandatory)</span>.
|
128
|
+
</p>
|
129
|
+
<div class="variablelist">
|
130
|
+
<p class="title"><b>Attributes:</b></p>
|
131
|
+
<table border="0" class="variablelist">
|
132
|
+
<colgroup>
|
133
|
+
<col align="left" valign="top">
|
134
|
+
<col>
|
135
|
+
</colgroup>
|
136
|
+
<tbody>
|
137
|
+
<tr>
|
138
|
+
<td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
|
139
|
+
<td><p>
|
140
|
+
Identifier for the description. This is used for
|
141
|
+
external references and must be unique among language descriptions. It can
|
142
|
+
contain a string of letters, digits, hyphens ("<code class="code">-</code>") and
|
143
|
+
underscores ("<code class="code">_</code>").
|
144
|
+
</p></td>
|
145
|
+
</tr>
|
146
|
+
<tr>
|
147
|
+
<td><p><span class="term"><code class="code">name</code> or <code class="code">_name</code> (mandatory)</span></p></td>
|
148
|
+
<td>
|
149
|
+
<p>
|
150
|
+
The name of the language presented to the user. With <code class="code">_name</code>, the
|
151
|
+
string is marked for translation (see the gettext documentation).
|
152
|
+
</p>
|
153
|
+
<p>
|
154
|
+
The name should be marked for translation only if: (1) it contains a common
|
155
|
+
English word, for example "C++ header" should be translated, but not "C++"
|
156
|
+
or "XML". Or (2) if the name contains several words, because in some
|
157
|
+
languages the word order should be different, for example "LLVM IR" or "RPM
|
158
|
+
spec" should also be marked for translation.
|
159
|
+
</p>
|
160
|
+
</td>
|
161
|
+
</tr>
|
162
|
+
<tr>
|
163
|
+
<td><p><span class="term"><code class="code">version</code> (mandatory)</span></p></td>
|
164
|
+
<td><p>
|
165
|
+
The version of the XML format (currently "2.0").
|
166
|
+
</p></td>
|
167
|
+
</tr>
|
168
|
+
<tr>
|
169
|
+
<td><p><span class="term"><code class="code">section</code> or <code class="code">_section</code> (optional)</span></p></td>
|
170
|
+
<td><p>
|
171
|
+
The category in which the language has to be grouped when presented to the user.
|
172
|
+
With <code class="code">_section</code> the string is marked for translation. Currently used
|
173
|
+
categories in GtkSourceView are "Source", "Script", "Markup", "Scientific" and
|
174
|
+
"Other", but it is possible to use arbitrary categories (while usually
|
175
|
+
discouraged). The convention in GtkSourceView is to use <code class="code">_section</code>.
|
176
|
+
</p></td>
|
177
|
+
</tr>
|
178
|
+
<tr>
|
179
|
+
<td><p><span class="term"><code class="code">hidden</code> (optional)</span></p></td>
|
180
|
+
<td><p>
|
181
|
+
It's a hint that the language should be "hidden" from user. For instance,
|
182
|
+
def.lang has this flag, and a text editor should not present "default" as
|
183
|
+
a syntax highlighting choice.
|
184
|
+
</p></td>
|
185
|
+
</tr>
|
186
|
+
</tbody>
|
187
|
+
</table>
|
188
|
+
</div>
|
189
|
+
</div>
|
190
|
+
<div class="refsect1">
|
191
|
+
<a name="id-1.4.3.7"></a><h2>Tag <code class="code"><metadata></code>
|
192
|
+
</h2>
|
193
|
+
<p>
|
194
|
+
Contains optional metadata about the language definition.
|
195
|
+
</p>
|
196
|
+
<p>
|
197
|
+
Recognized elements are (all optional):
|
198
|
+
</p>
|
199
|
+
<dt><span class="term"><code class="code">mimetypes</code></span></dt>
|
200
|
+
<dd><p>
|
201
|
+
The semicolon-separated list of mimetypes associated to the language. See the
|
202
|
+
<a class="ulink" href="http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/" target="_top">shared-mime-info</a>
|
203
|
+
freedesktop.org specification. A language definition file shipped by
|
204
|
+
GtkSourceView needs to have a mimetype defined in the shared-mime-info
|
205
|
+
database. If the language definition file is not shipped by GtkSourceView, you
|
206
|
+
can also create the mimetype locally, usually in
|
207
|
+
<code class="filename">~/.local/share/mime/packages/</code>.
|
208
|
+
</p></dd>
|
209
|
+
<dt><span class="term"><code class="code">globs</code></span></dt>
|
210
|
+
<dd><p>
|
211
|
+
The semicolon-separated list of globs associated to the language.
|
212
|
+
</p></dd>
|
213
|
+
<dt><span class="term"><code class="code">line-comment-start</code></span></dt>
|
214
|
+
<dd><p>
|
215
|
+
String used to create single-line comment in files of this type, e.g.
|
216
|
+
"#" in shell scripts.
|
217
|
+
It may be used in an editor to implement Comment/Uncomment functionality.
|
218
|
+
</p></dd>
|
219
|
+
<dt><span class="term"><code class="code">block-comment-start</code></span></dt>
|
220
|
+
<dd><p>
|
221
|
+
String used to start block comment in files of this type, e.g. "/*" in C
|
222
|
+
files.
|
223
|
+
</p></dd>
|
224
|
+
<dt><span class="term"><code class="code">block-comment-end</code></span></dt>
|
225
|
+
<dd><p>
|
226
|
+
String used to end block comment in files of this type, e.g. "*/" in C
|
227
|
+
files.
|
228
|
+
</p></dd>
|
229
|
+
</div>
|
230
|
+
<div class="refsect1">
|
231
|
+
<a name="id-1.4.3.8"></a><h2>Tag <code class="code"><styles></code>
|
232
|
+
</h2>
|
233
|
+
<p>
|
234
|
+
Contains the definitions of every style used in the current language and
|
235
|
+
their association with predefined styles in GtkSourceView.
|
236
|
+
</p>
|
237
|
+
<p>
|
238
|
+
Contained elements:
|
239
|
+
<span class="simplelist"><code class="code"><style></code> (one or more)</span>.
|
240
|
+
</p>
|
241
|
+
</div>
|
242
|
+
<div class="refsect1">
|
243
|
+
<a name="id-1.4.3.9"></a><h2>Tag <code class="code"><style></code>
|
244
|
+
</h2>
|
245
|
+
<p>
|
246
|
+
Defines a style, associating its id with a user visible translatable
|
247
|
+
name and a default style.
|
248
|
+
</p>
|
249
|
+
<p>
|
250
|
+
Contained elements: none.
|
251
|
+
</p>
|
252
|
+
<div class="variablelist">
|
253
|
+
<p class="title"><b>Attributes:</b></p>
|
254
|
+
<table border="0" class="variablelist">
|
255
|
+
<colgroup>
|
256
|
+
<col align="left" valign="top">
|
257
|
+
<col>
|
258
|
+
</colgroup>
|
259
|
+
<tbody>
|
260
|
+
<tr>
|
261
|
+
<td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
|
262
|
+
<td><p>
|
263
|
+
Identifier for the style. This is used in the current language
|
264
|
+
to refer to this style and must be unique for the current document.
|
265
|
+
It can contain a string of letters, digits,
|
266
|
+
hyphens ("<code class="code">-</code>") and underscores ("<code class="code">_</code>").
|
267
|
+
</p></td>
|
268
|
+
</tr>
|
269
|
+
<tr>
|
270
|
+
<td><p><span class="term"><code class="code">name</code> or <code class="code">_name</code> (mandatory)</span></p></td>
|
271
|
+
<td>
|
272
|
+
<p>
|
273
|
+
The user visible name for the style. With <code class="code">_name</code> the string is
|
274
|
+
marked for translation.
|
275
|
+
</p>
|
276
|
+
<p>
|
277
|
+
The convention in GtkSourceView is to <span class="emphasis"><em>never</em></span> mark those
|
278
|
+
strings for translation because they are extremely rarely used in the UI of
|
279
|
+
an application (for example it could be used by a GUI tool to edit or create
|
280
|
+
style schemes, but it is not really useful beyond that), and because those
|
281
|
+
strings would be hard to translate (as a result, if those strings are
|
282
|
+
translated, in practice they would often be translated in a way that the
|
283
|
+
user doesn't understand what it means; for example for the C language,
|
284
|
+
"include" or "define" should not be translated, those are keywords of the
|
285
|
+
programming language).
|
286
|
+
</p>
|
287
|
+
</td>
|
288
|
+
</tr>
|
289
|
+
<tr>
|
290
|
+
<td><p><span class="term"><code class="code">map-to</code> (optional)</span></p></td>
|
291
|
+
<td><p>
|
292
|
+
Used to map the style with a default style, to use colors and
|
293
|
+
font properties defined for those default styles.
|
294
|
+
The id of the default style has to be preceded with the id of the
|
295
|
+
language where it is defined, separated with a semicolon ":".
|
296
|
+
When omitted the style is not considered derived from any style and will
|
297
|
+
not be highlighted until the user specifies a color scheme for this
|
298
|
+
style.
|
299
|
+
</p></td>
|
300
|
+
</tr>
|
301
|
+
</tbody>
|
302
|
+
</table>
|
303
|
+
</div>
|
304
|
+
</div>
|
305
|
+
<div class="refsect1">
|
306
|
+
<a name="id-1.4.3.10"></a><h2>Tag <code class="code"><keyword-char-class></code>
|
307
|
+
</h2>
|
308
|
+
<p>
|
309
|
+
Contains a regex character class used to redefine the customizable
|
310
|
+
word boundary delimiters "\%[" and "\%]". This class is the set of character
|
311
|
+
that can be commonly found in a keyword.
|
312
|
+
If the element is omitted the two delimiters default to "\b".
|
313
|
+
</p>
|
314
|
+
<p>
|
315
|
+
Contained elements: none.
|
316
|
+
</p>
|
317
|
+
</div>
|
318
|
+
<div class="refsect1">
|
319
|
+
<a name="id-1.4.3.11"></a><h2>Tag <code class="code"><default-regex-options></code>
|
320
|
+
</h2>
|
321
|
+
<p>
|
322
|
+
Used to set global options for how regular expressions are processed.
|
323
|
+
</p>
|
324
|
+
<p>
|
325
|
+
Contained elements: none.
|
326
|
+
</p>
|
327
|
+
<div class="variablelist">
|
328
|
+
<p class="title"><b>Attributes</b></p>
|
329
|
+
<table border="0" class="variablelist">
|
330
|
+
<colgroup>
|
331
|
+
<col align="left" valign="top">
|
332
|
+
<col>
|
333
|
+
</colgroup>
|
334
|
+
<tbody>
|
335
|
+
<tr>
|
336
|
+
<td><p><span class="term"><code class="code">case-sensitive</code> (optional)</span></p></td>
|
337
|
+
<td><p>Set to <code class="code">false</code> to make regular expressions
|
338
|
+
ignore case.
|
339
|
+
Defaults to <code class="code">true</code>.
|
340
|
+
</p></td>
|
341
|
+
</tr>
|
342
|
+
<tr>
|
343
|
+
<td><p><span class="term"><code class="code">extended</code> (optional)</span></p></td>
|
344
|
+
<td><p>Setting this to <code class="code">true</code> makes the regular
|
345
|
+
expression engine ignore spaces and comments. These comments start with
|
346
|
+
"<code class="code">#</code>" and continue to the end of the line.
|
347
|
+
Defaults to <code class="code">false</code>.
|
348
|
+
</p></td>
|
349
|
+
</tr>
|
350
|
+
<tr>
|
351
|
+
<td><p><span class="term"><code class="code">dupnames</code> (optional)</span></p></td>
|
352
|
+
<td><p>Setting this to true allows one to repeat an identifier
|
353
|
+
for capturing parentheses. This is useful for some patterns that you
|
354
|
+
know only one instance of a named subpattern can ever be matched.
|
355
|
+
Defaults to <code class="code">false</code>.
|
356
|
+
</p></td>
|
357
|
+
</tr>
|
358
|
+
</tbody>
|
359
|
+
</table>
|
360
|
+
</div>
|
361
|
+
</div>
|
362
|
+
<div class="refsect1">
|
363
|
+
<a name="id-1.4.3.12"></a><h2>Tag <code class="code"><definitions></code>
|
364
|
+
</h2>
|
365
|
+
<p>
|
366
|
+
The element containing the real description of the syntax to be
|
367
|
+
highlighted. It contains one or more <code class="code"><context></code> element and an
|
368
|
+
arbitrary number of <code class="code"><define-regex></code> elements, interleaved.
|
369
|
+
It has no attributes.
|
370
|
+
Every contained element must have its <code class="code">id</code> attribute set to an
|
371
|
+
identifier unique for the document. Exactly one of the contained
|
372
|
+
<code class="code"><context></code> element must have
|
373
|
+
the <code class="code">id</code> attribute set to the <code class="code">id</code> of the
|
374
|
+
<code class="code"><language></code> root element,
|
375
|
+
representing the initial context for the highlighting, the one the engine
|
376
|
+
enters at the beginning of the highlighted file.
|
377
|
+
</p>
|
378
|
+
<p>
|
379
|
+
Contained elements:
|
380
|
+
<span class="simplelist"><code class="code"><context></code> (one or more), <code class="code"><define-regex></code> (zero or more)</span>.
|
381
|
+
</p>
|
382
|
+
</div>
|
383
|
+
<div class="refsect1">
|
384
|
+
<a name="id-1.4.3.13"></a><h2>Tag <code class="code"><define-regex></code>
|
385
|
+
</h2>
|
386
|
+
<p>
|
387
|
+
The syntax highlighting engine of GtkSourceView uses
|
388
|
+
<a href="/home/seb/jhbuild/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html#GRegex"><span class="type">GRegex</span></a>,
|
389
|
+
which uses the PCRE library. See the
|
390
|
+
<a class="ulink" href="https://developer.gnome.org/glib/stable/glib-regex-syntax.html" target="_top">Regular expression syntax</a>
|
391
|
+
page in the GLib reference manual.
|
392
|
+
</p>
|
393
|
+
<p>
|
394
|
+
The <code class="code"><define-regex></code> tag defines a regular expression that can
|
395
|
+
be reused inside other regular expression, to avoid replicating common portions.
|
396
|
+
Those regular expressions are in the form <code class="code">/regex/options</code>. If there
|
397
|
+
are no options to be specified and you don't need to match the spaces at the
|
398
|
+
start and at the end of the regular expression, you can omit the slashes,
|
399
|
+
putting here only <code class="code">regex</code>. The possible options are those specified
|
400
|
+
above in the description of the <code class="code"><default-regex-options></code>
|
401
|
+
element. To disable a group of options, instead, you have to prepend an hyphen
|
402
|
+
<code class="code">-</code> to them. In GtkSourceView are also available some extensions to
|
403
|
+
the standard Perl style regular expressions:
|
404
|
+
</p>
|
405
|
+
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
406
|
+
<li class="listitem"><p>
|
407
|
+
<code class="code">\%[</code> and <code class="code">\%]</code> are custom word boundaries, which can
|
408
|
+
be redefined with the <code class="code"><keyword-char-class></code> (in contrast with
|
409
|
+
<code class="code">\b</code>);
|
410
|
+
</p></li>
|
411
|
+
<li class="listitem"><p>
|
412
|
+
<code class="code">\%{id}</code> will include the regular expression defined in another
|
413
|
+
<code class="code"><define-regex></code> element with the specified id.
|
414
|
+
</p></li>
|
415
|
+
</ul></div>
|
416
|
+
<p>
|
417
|
+
It is allowed to use any of the attributes from
|
418
|
+
<code class="code"><default-regex-options></code> as attributes of this tag.
|
419
|
+
</p>
|
420
|
+
<p>
|
421
|
+
Contained elements: none.
|
422
|
+
</p>
|
423
|
+
<div class="variablelist">
|
424
|
+
<p class="title"><b>Attributes:</b></p>
|
425
|
+
<table border="0" class="variablelist">
|
426
|
+
<colgroup>
|
427
|
+
<col align="left" valign="top">
|
428
|
+
<col>
|
429
|
+
</colgroup>
|
430
|
+
<tbody><tr>
|
431
|
+
<td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
|
432
|
+
<td><p>
|
433
|
+
Identifier for the regular expression. This is used
|
434
|
+
for the inclusion of the defined regular expression and must be unique
|
435
|
+
for the current document. It can contain a string of letters, digits,
|
436
|
+
hyphens ("<code class="code">-</code>") and underscores ("<code class="code">_</code>").
|
437
|
+
</p></td>
|
438
|
+
</tr></tbody>
|
439
|
+
</table>
|
440
|
+
</div>
|
441
|
+
</div>
|
442
|
+
<div class="refsect1">
|
443
|
+
<a name="id-1.4.3.14"></a><h2>Tag <code class="code"><context></code>
|
444
|
+
</h2>
|
445
|
+
<p>
|
446
|
+
This is the most important element when describing the syntax: the file to
|
447
|
+
be highlighted is partitioned in contexts representing the portions to be
|
448
|
+
colored differently. Contexts can also contain other contexts.
|
449
|
+
There are different kind of context elements: simple contexts, container
|
450
|
+
contexts, sub-pattern contexts, reference contexts and keyword contexts.
|
451
|
+
</p>
|
452
|
+
<p>
|
453
|
+
Context classes can be enabled or disabled for some contexts, with the
|
454
|
+
<code class="code">class</code> and <code class="code">class-disabled</code> attributes. You can create
|
455
|
+
your own context classes in custom language definition files. Here are the
|
456
|
+
default context classes:
|
457
|
+
</p>
|
458
|
+
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
459
|
+
<li class="listitem"><p>
|
460
|
+
<span class="emphasis"><em>comment</em></span>: the context delimits a comment;
|
461
|
+
</p></li>
|
462
|
+
<li class="listitem"><p>
|
463
|
+
<span class="emphasis"><em>no-spell-check</em></span>: the context's content should
|
464
|
+
not be spell checked;
|
465
|
+
</p></li>
|
466
|
+
<li class="listitem"><p>
|
467
|
+
<span class="emphasis"><em>path</em></span>: the context delimits a path to a file;
|
468
|
+
</p></li>
|
469
|
+
<li class="listitem"><p>
|
470
|
+
<span class="emphasis"><em>string</em></span>: the context delimits a string.
|
471
|
+
</p></li>
|
472
|
+
</ul></div>
|
473
|
+
<div class="refsect2">
|
474
|
+
<a name="id-1.4.3.14.5"></a><h3>Simple contexts</h3>
|
475
|
+
They contain a mandatory <code class="code"><match></code> element and an optional
|
476
|
+
<code class="code"><include></code> element. The context will span over the strings
|
477
|
+
matched by the regular expression contained in the <code class="code"><match></code>
|
478
|
+
element. In the <code class="code"><include></code> element you
|
479
|
+
can only put sub-pattern contexts.
|
480
|
+
|
481
|
+
<p>
|
482
|
+
Contained elements:
|
483
|
+
<span class="simplelist"><code class="code"><match></code> (mandatory), <code class="code"><include></code> (optional)</span>.
|
484
|
+
</p>
|
485
|
+
<div class="variablelist">
|
486
|
+
<p class="title"><b>Attributes:</b></p>
|
487
|
+
<table border="0" class="variablelist">
|
488
|
+
<colgroup>
|
489
|
+
<col align="left" valign="top">
|
490
|
+
<col>
|
491
|
+
</colgroup>
|
492
|
+
<tbody>
|
493
|
+
<tr>
|
494
|
+
<td><p><span class="term"><code class="code">id</code> (optional)</span></p></td>
|
495
|
+
<td><p>
|
496
|
+
A unique identifier for the context, used in references to the context. It
|
497
|
+
can contain a string of letters, digits, hyphens ("<code class="code">-</code>") and
|
498
|
+
underscores ("<code class="code">_</code>").
|
499
|
+
</p></td>
|
500
|
+
</tr>
|
501
|
+
<tr>
|
502
|
+
<td><p><span class="term"><code class="code">style-ref</code> (optional)</span></p></td>
|
503
|
+
<td><p>
|
504
|
+
Highlighting style for this context. Value of this attribute
|
505
|
+
may be id of a style defined in current lang file, or id of a style
|
506
|
+
defined in other files prefixed with corresponding language id,
|
507
|
+
e.g. "def:comment".
|
508
|
+
</p></td>
|
509
|
+
</tr>
|
510
|
+
<tr>
|
511
|
+
<td><p><span class="term"><code class="code">extend-parent</code> (optional)</span></p></td>
|
512
|
+
<td><p>
|
513
|
+
A boolean value telling the engine whether the context has higher
|
514
|
+
priority than the end of its parent. If not specified it defaults to
|
515
|
+
<code class="code">true</code>.
|
516
|
+
</p></td>
|
517
|
+
</tr>
|
518
|
+
<tr>
|
519
|
+
<td><p><span class="term"><code class="code">end-parent</code> (optional)</span></p></td>
|
520
|
+
<td><p>
|
521
|
+
A boolean value telling the engine whether the context terminates parent context.
|
522
|
+
If not specified it defaults to <code class="code">false</code>.
|
523
|
+
</p></td>
|
524
|
+
</tr>
|
525
|
+
<tr>
|
526
|
+
<td><p><span class="term"><code class="code">first-line-only</code> (optional)</span></p></td>
|
527
|
+
<td><p>
|
528
|
+
A boolean value telling the engine whether the context can occur only
|
529
|
+
on the first line of buffer. If not specified it defaults to <code class="code">false</code>.
|
530
|
+
</p></td>
|
531
|
+
</tr>
|
532
|
+
<tr>
|
533
|
+
<td><p><span class="term"><code class="code">once-only</code> (optional)</span></p></td>
|
534
|
+
<td><p>
|
535
|
+
A boolean value telling the engine whether the context can occur only
|
536
|
+
once in its parent. If not specified it defaults to <code class="code">false</code>.
|
537
|
+
</p></td>
|
538
|
+
</tr>
|
539
|
+
<tr>
|
540
|
+
<td><p><span class="term"><code class="code">class</code> (optional)</span></p></td>
|
541
|
+
<td><p>
|
542
|
+
A space-separated list of context classes to enable.
|
543
|
+
</p></td>
|
544
|
+
</tr>
|
545
|
+
<tr>
|
546
|
+
<td><p><span class="term"><code class="code">class-disabled</code> (optional)</span></p></td>
|
547
|
+
<td><p>
|
548
|
+
A space-separated list of context classes to disable.
|
549
|
+
</p></td>
|
550
|
+
</tr>
|
551
|
+
</tbody>
|
552
|
+
</table>
|
553
|
+
</div>
|
554
|
+
</div>
|
555
|
+
<hr>
|
556
|
+
<div class="refsect2">
|
557
|
+
<a name="id-1.4.3.14.6"></a><h3>Container contexts</h3>
|
558
|
+
They contain a <code class="code"><start></code> element and an optional
|
559
|
+
<code class="code"><end></code>. They respectively contain the regular
|
560
|
+
expression that makes the engine enter in the context and the terminating one.
|
561
|
+
In the optional <code class="code"><include></code> element you can put contained
|
562
|
+
contexts of every type (simple, container, sub-pattern or reference).
|
563
|
+
If the <code class="code"><start></code> element is omitted, then the
|
564
|
+
<code class="code">id</code> attribute and the <code class="code"><include></code> become
|
565
|
+
mandatory (the context can only be used as a container to include
|
566
|
+
its children).
|
567
|
+
|
568
|
+
<p>
|
569
|
+
Contained elements:
|
570
|
+
<span class="simplelist"><code class="code"><start></code> (optional), <code class="code"><end></code> (optional), <code class="code"><include></code> (optional)</span>.
|
571
|
+
</p>
|
572
|
+
<div class="variablelist">
|
573
|
+
<p class="title"><b>Attributes:</b></p>
|
574
|
+
<table border="0" class="variablelist">
|
575
|
+
<colgroup>
|
576
|
+
<col align="left" valign="top">
|
577
|
+
<col>
|
578
|
+
</colgroup>
|
579
|
+
<tbody>
|
580
|
+
<tr>
|
581
|
+
<td><p><span class="term"><code class="code">id</code> (mandatory only if <code class="code"><start></code> not present)</span></p></td>
|
582
|
+
<td><p>
|
583
|
+
A unique identifier for the context, used in references to the context. It
|
584
|
+
can contain a string of letters, digits, hyphens ("<code class="code">-</code>") and
|
585
|
+
underscores ("<code class="code">_</code>").
|
586
|
+
</p></td>
|
587
|
+
</tr>
|
588
|
+
<tr>
|
589
|
+
<td><p><span class="term"><code class="code">style-ref</code> (optional)</span></p></td>
|
590
|
+
<td><p>
|
591
|
+
Highlighting style for this context. Value of this attribute
|
592
|
+
may be id of a style defined in current lang file, or id of a style
|
593
|
+
defined in other files prefixed with corresponding language id,
|
594
|
+
e.g. "def:comment".
|
595
|
+
</p></td>
|
596
|
+
</tr>
|
597
|
+
<tr>
|
598
|
+
<td><p><span class="term"><code class="code">style-inside</code> (optional)</span></p></td>
|
599
|
+
<td><p>
|
600
|
+
If this attribute is "true", then the highlighting style will
|
601
|
+
be applied to the area between start and end matches; otherwise
|
602
|
+
whole context will be highlighted.
|
603
|
+
</p></td>
|
604
|
+
</tr>
|
605
|
+
<tr>
|
606
|
+
<td><p><span class="term"><code class="code">extend-parent</code> (optional)</span></p></td>
|
607
|
+
<td><p>
|
608
|
+
A boolean value telling the engine whether the context has a higher
|
609
|
+
priority than the end of its parent. If not specified it defaults to
|
610
|
+
<code class="code">true</code>.
|
611
|
+
</p></td>
|
612
|
+
</tr>
|
613
|
+
<tr>
|
614
|
+
<td><p><span class="term"><code class="code">end-at-line-end</code> (optional)</span></p></td>
|
615
|
+
<td><p>
|
616
|
+
A boolean value telling the engine whether the context must be forced
|
617
|
+
to end at the end of the line. If not specified it defaults to
|
618
|
+
<code class="code">false</code>.
|
619
|
+
</p></td>
|
620
|
+
</tr>
|
621
|
+
<tr>
|
622
|
+
<td><p><span class="term"><code class="code">end-parent</code> (optional)</span></p></td>
|
623
|
+
<td><p>
|
624
|
+
A boolean value telling the engine whether the context terminates parent context
|
625
|
+
when it ends.
|
626
|
+
If not specified it defaults to <code class="code">false</code>.
|
627
|
+
</p></td>
|
628
|
+
</tr>
|
629
|
+
<tr>
|
630
|
+
<td><p><span class="term"><code class="code">first-line-only</code> (optional)</span></p></td>
|
631
|
+
<td><p>
|
632
|
+
A boolean value telling the engine whether the context can start only
|
633
|
+
on the first line of buffer. If not specified it defaults to <code class="code">false</code>.
|
634
|
+
</p></td>
|
635
|
+
</tr>
|
636
|
+
<tr>
|
637
|
+
<td><p><span class="term"><code class="code">once-only</code> (optional)</span></p></td>
|
638
|
+
<td><p>
|
639
|
+
A boolean value telling the engine whether the context can occur only
|
640
|
+
once in its parent. For a container context, it means that
|
641
|
+
<span class="emphasis"><em>each</em></span> included context can occur once.
|
642
|
+
If not specified it defaults to <code class="code">false</code>.
|
643
|
+
</p></td>
|
644
|
+
</tr>
|
645
|
+
<tr>
|
646
|
+
<td><p><span class="term"><code class="code">class</code> (optional)</span></p></td>
|
647
|
+
<td><p>
|
648
|
+
A space-separated list of context classes to enable.
|
649
|
+
</p></td>
|
650
|
+
</tr>
|
651
|
+
<tr>
|
652
|
+
<td><p><span class="term"><code class="code">class-disabled</code> (optional)</span></p></td>
|
653
|
+
<td><p>
|
654
|
+
A space-separated list of context classes to disable.
|
655
|
+
</p></td>
|
656
|
+
</tr>
|
657
|
+
</tbody>
|
658
|
+
</table>
|
659
|
+
</div>
|
660
|
+
</div>
|
661
|
+
<hr>
|
662
|
+
<div class="refsect2">
|
663
|
+
<a name="id-1.4.3.14.7"></a><h3>Sub-pattern contexts</h3>
|
664
|
+
<p>
|
665
|
+
They refer to a group in a regular expression of the parent context, so it
|
666
|
+
is possible to highlight differently only a portion of the matched regular
|
667
|
+
expression.
|
668
|
+
</p>
|
669
|
+
<p>
|
670
|
+
Contained elements: none.
|
671
|
+
</p>
|
672
|
+
<div class="variablelist">
|
673
|
+
<p class="title"><b>Attributes:</b></p>
|
674
|
+
<table border="0" class="variablelist">
|
675
|
+
<colgroup>
|
676
|
+
<col align="left" valign="top">
|
677
|
+
<col>
|
678
|
+
</colgroup>
|
679
|
+
<tbody>
|
680
|
+
<tr>
|
681
|
+
<td><p><span class="term"><code class="code">id</code> (optional)</span></p></td>
|
682
|
+
<td><p>
|
683
|
+
A unique identifier for the context. It can contain a string of letters,
|
684
|
+
digits, hyphens ("<code class="code">-</code>") and underscores ("<code class="code">_</code>").
|
685
|
+
</p></td>
|
686
|
+
</tr>
|
687
|
+
<tr>
|
688
|
+
<td><p><span class="term"><code class="code">sub-pattern</code> (mandatory)</span></p></td>
|
689
|
+
<td><p>
|
690
|
+
The sub-pattern to which we refer. "0" means the whole expression, "1" the
|
691
|
+
first group, "2" the second one, etc. If named sub-patterns are used you can
|
692
|
+
also use the name.
|
693
|
+
</p></td>
|
694
|
+
</tr>
|
695
|
+
<tr>
|
696
|
+
<td><p><span class="term"><code class="code">where</code> (mandatory only in container contexts)</span></p></td>
|
697
|
+
<td><p>
|
698
|
+
Can be "<code class="code">start</code>" or "<code class="code">end</code>". It has to be used
|
699
|
+
only if the parent is a container context to specify whether the
|
700
|
+
sub-pattern is in the regular
|
701
|
+
expression of the <code class="code"><start></code> or the <code class="code"><end></code>
|
702
|
+
element. In simple contexts it must be omitted.
|
703
|
+
</p></td>
|
704
|
+
</tr>
|
705
|
+
<tr>
|
706
|
+
<td><p><span class="term"><code class="code">class</code> (optional)</span></p></td>
|
707
|
+
<td><p>
|
708
|
+
A space-separated list of context classes to enable.
|
709
|
+
</p></td>
|
710
|
+
</tr>
|
711
|
+
<tr>
|
712
|
+
<td><p><span class="term"><code class="code">class-disabled</code> (optional)</span></p></td>
|
713
|
+
<td><p>
|
714
|
+
A space-separated list of context classes to disable.
|
715
|
+
</p></td>
|
716
|
+
</tr>
|
717
|
+
</tbody>
|
718
|
+
</table>
|
719
|
+
</div>
|
720
|
+
</div>
|
721
|
+
<hr>
|
722
|
+
<div class="refsect2">
|
723
|
+
<a name="id-1.4.3.14.8"></a><h3>Reference contexts</h3>
|
724
|
+
<p>
|
725
|
+
Used to include a previously defined context.
|
726
|
+
</p>
|
727
|
+
<p>
|
728
|
+
Contained elements: none.
|
729
|
+
</p>
|
730
|
+
<div class="variablelist">
|
731
|
+
<p class="title"><b>Attributes:</b></p>
|
732
|
+
<table border="0" class="variablelist">
|
733
|
+
<colgroup>
|
734
|
+
<col align="left" valign="top">
|
735
|
+
<col>
|
736
|
+
</colgroup>
|
737
|
+
<tbody>
|
738
|
+
<tr>
|
739
|
+
<td><p><span class="term"><code class="code">ref</code> (mandatory)</span></p></td>
|
740
|
+
<td><p>
|
741
|
+
The id of the context to be included. A colon followed by an asterisk
|
742
|
+
("<code class="code">:*</code>") at the end of the id means that the parent should include
|
743
|
+
every children of the specified context, instead of the context itself.
|
744
|
+
Prepending the id of another language to the id of the context (separated
|
745
|
+
with a semicolon ":") is possible to include contexts defined inside such
|
746
|
+
external language.
|
747
|
+
</p></td>
|
748
|
+
</tr>
|
749
|
+
<tr>
|
750
|
+
<td><p><span class="term"><code class="code">style-ref</code> (optional)</span></p></td>
|
751
|
+
<td><p>
|
752
|
+
Style in included context may be overridden by using this attribute.
|
753
|
+
Its value is id of the style to be used instead of style specified
|
754
|
+
in the referenced context.
|
755
|
+
</p></td>
|
756
|
+
</tr>
|
757
|
+
<tr>
|
758
|
+
<td><p><span class="term"><code class="code">ignore-style</code> (optional)</span></p></td>
|
759
|
+
<td><p>
|
760
|
+
If this attribute is "true" then the referenced context will not
|
761
|
+
be highlighted. It does not affect child contexts and their styles.
|
762
|
+
</p></td>
|
763
|
+
</tr>
|
764
|
+
<tr>
|
765
|
+
<td><p><span class="term"><code class="code">original</code> (optional)</span></p></td>
|
766
|
+
<td><p>
|
767
|
+
If this attribute is "true", it references the original context, if it
|
768
|
+
has been replaced with the <code class="code"><replace></code> tag.
|
769
|
+
</p></td>
|
770
|
+
</tr>
|
771
|
+
</tbody>
|
772
|
+
</table>
|
773
|
+
</div>
|
774
|
+
</div>
|
775
|
+
<hr>
|
776
|
+
<div class="refsect2">
|
777
|
+
<a name="id-1.4.3.14.9"></a><h3>Keyword contexts</h3>
|
778
|
+
<p>
|
779
|
+
They contain a list of <code class="code"><keyword></code> and matches every keyword
|
780
|
+
listed. You can also put a <code class="code"><prefix></code> and/or a
|
781
|
+
<code class="code"><suffix></code> common to every keyword.
|
782
|
+
</p>
|
783
|
+
<p>
|
784
|
+
Note that keywords are matched in the order they are listed, so if you
|
785
|
+
have both a keyword "foo" and a keyword "foobar", you should always list
|
786
|
+
foobar before foo, or it will never be matched.
|
787
|
+
</p>
|
788
|
+
<p>
|
789
|
+
Contained elements:
|
790
|
+
<span class="simplelist"><code class="code"><prefix></code> (optional), <code class="code"><suffix></code> (optional), <code class="code"><keyword></code> (one or more)</span>.
|
791
|
+
</p>
|
792
|
+
<p>
|
793
|
+
The attributes are the same used in simple contexts. If the
|
794
|
+
<code class="code">once-only</code> attribute is <code class="code">true</code>, it means that
|
795
|
+
<span class="emphasis"><em>each</em></span> keyword can occur once.
|
796
|
+
</p>
|
797
|
+
</div>
|
798
|
+
</div>
|
799
|
+
<div class="refsect1">
|
800
|
+
<a name="id-1.4.3.15"></a><h2>Tag <code class="code"><include></code>
|
801
|
+
</h2>
|
802
|
+
<p>
|
803
|
+
Contains the list of context contained in the current
|
804
|
+
<code class="code"><context></code>.
|
805
|
+
</p>
|
806
|
+
<p>
|
807
|
+
Contained elements:
|
808
|
+
<span class="simplelist"><code class="code"><context></code> (one or more), <code class="code"><define-regex></code> (zero or more)</span>.
|
809
|
+
</p>
|
810
|
+
</div>
|
811
|
+
<div class="refsect1">
|
812
|
+
<a name="id-1.4.3.16"></a><h2>Tag <code class="code"><match></code>
|
813
|
+
</h2>
|
814
|
+
<p>
|
815
|
+
Contains the regular expression for the current simple context.
|
816
|
+
The expression is in the same form used in
|
817
|
+
<code class="code"><define-regex></code> elements.
|
818
|
+
It is allowed to use any of the attributes from
|
819
|
+
<code class="code"><default-regex-options></code> as attributes of this tag.
|
820
|
+
</p>
|
821
|
+
<p>
|
822
|
+
Contained elements: none.
|
823
|
+
</p>
|
824
|
+
</div>
|
825
|
+
<div class="refsect1">
|
826
|
+
<a name="id-1.4.3.17"></a><h2>Tag <code class="code"><start></code>
|
827
|
+
</h2>
|
828
|
+
<p>
|
829
|
+
Contains the starting regular expression for the current container context.
|
830
|
+
The expression is in the same form used in <code class="code"><define-regex></code>
|
831
|
+
elements.
|
832
|
+
It is allowed to use any of the attributes from
|
833
|
+
<code class="code"><default-regex-options></code> as attributes of this tag.
|
834
|
+
</p>
|
835
|
+
<p>
|
836
|
+
Contained elements: none.
|
837
|
+
</p>
|
838
|
+
</div>
|
839
|
+
<div class="refsect1">
|
840
|
+
<a name="id-1.4.3.18"></a><h2>Tag <code class="code"><end></code>
|
841
|
+
</h2>
|
842
|
+
<p>
|
843
|
+
Contains the terminating regular expression for the current container
|
844
|
+
context. The expression is in the same form used in <code class="code"><define-regex></code>
|
845
|
+
elements, with an extension: <code class="code">\%{sub-pattern@start}</code> will be
|
846
|
+
substituted with the string matched in the corresponding sub-pattern
|
847
|
+
(can be a number or a name if named sub-patterns are used) in the
|
848
|
+
preceding <code class="code"><start></code> element. For instance you could
|
849
|
+
implement shell-style here-documents with this code:
|
850
|
+
</p>
|
851
|
+
<pre class="programlisting">
|
852
|
+
<context id="here-doc">
|
853
|
+
<start>&lt;&lt;\s*(\S+)$</start>
|
854
|
+
<end>^\%{1@start}$</end>
|
855
|
+
</context>
|
856
|
+
</pre>
|
857
|
+
<p>
|
858
|
+
It is also possible to use any of the attributes from
|
859
|
+
<code class="code"><default-regex-options></code> as attributes of this tag.
|
860
|
+
</p>
|
861
|
+
<p>
|
862
|
+
Contained elements: none.
|
863
|
+
</p>
|
864
|
+
</div>
|
865
|
+
<div class="refsect1">
|
866
|
+
<a name="id-1.4.3.19"></a><h2>Tag <code class="code"><keyword></code>
|
867
|
+
</h2>
|
868
|
+
<p>
|
869
|
+
Contains a keyword to be matched by the current context. The keyword is a
|
870
|
+
regular expression in the form used in <code class="code"><define-regex></code>.
|
871
|
+
</p>
|
872
|
+
<p>
|
873
|
+
Contained elements: none.
|
874
|
+
</p>
|
875
|
+
</div>
|
876
|
+
<div class="refsect1">
|
877
|
+
<a name="id-1.4.3.20"></a><h2>Tag <code class="code"><prefix></code>
|
878
|
+
</h2>
|
879
|
+
<p>
|
880
|
+
Contains a prefix common to all of the following keywords in the current
|
881
|
+
context. The prefix is a regular expression in the form used in
|
882
|
+
<code class="code"><define-regex></code>. If not specified it defaults to
|
883
|
+
<code class="code">\%[</code>
|
884
|
+
</p>
|
885
|
+
<p>
|
886
|
+
Contained elements: none.
|
887
|
+
</p>
|
888
|
+
</div>
|
889
|
+
<div class="refsect1">
|
890
|
+
<a name="id-1.4.3.21"></a><h2>Tag <code class="code"><suffix></code>
|
891
|
+
</h2>
|
892
|
+
<p>
|
893
|
+
Contains a suffix common to all of the following keywords in the current
|
894
|
+
context. The suffix is a regular expression in the form used in
|
895
|
+
<code class="code"><define-regex></code>. If not specified it defaults to
|
896
|
+
<code class="code">\%]</code>
|
897
|
+
</p>
|
898
|
+
<p>
|
899
|
+
Contained elements: none.
|
900
|
+
</p>
|
901
|
+
</div>
|
902
|
+
<div class="refsect1">
|
903
|
+
<a name="id-1.4.3.22"></a><h2>Tag <code class="code"><replace></code>
|
904
|
+
</h2>
|
905
|
+
<p>
|
906
|
+
The replace tag allows you to change one context so it functions as
|
907
|
+
another context. For example, in the <code class="code">html.lang</code> definition,
|
908
|
+
there are a few references to a null context with id
|
909
|
+
"<code class="code">embedded-lang-hook</code>". In <code class="code">php.lang</code>, that context is
|
910
|
+
replaced like this: <code class="code"><replace id="html:embedded-lang-hook"
|
911
|
+
ref="php-block"></code>, so that php blocks are recognized within the
|
912
|
+
<code class="code">html:html</code> context at the points where the
|
913
|
+
<code class="code">embedded-lang-hook</code> context appears.
|
914
|
+
</p>
|
915
|
+
<p>
|
916
|
+
Contained elements: none.
|
917
|
+
</p>
|
918
|
+
<div class="variablelist">
|
919
|
+
<p class="title"><b>Attributes:</b></p>
|
920
|
+
<table border="0" class="variablelist">
|
921
|
+
<colgroup>
|
922
|
+
<col align="left" valign="top">
|
923
|
+
<col>
|
924
|
+
</colgroup>
|
925
|
+
<tbody>
|
926
|
+
<tr>
|
927
|
+
<td><p><span class="term"><code class="code">id</code> (mandatory)</span></p></td>
|
928
|
+
<td><p>
|
929
|
+
The id of the context to replace. Ex: <code class="code">id="html:embedded-lang-hook"</code>
|
930
|
+
</p></td>
|
931
|
+
</tr>
|
932
|
+
<tr>
|
933
|
+
<td><p><span class="term"><code class="code">ref</code> (mandatory)</span></p></td>
|
934
|
+
<td><p>
|
935
|
+
The id of the context to put in place of the context being replaced. Ex: <code class="code">ref="php-block"</code>
|
936
|
+
</p></td>
|
937
|
+
</tr>
|
938
|
+
</tbody>
|
939
|
+
</table>
|
940
|
+
</div>
|
941
|
+
</div>
|
942
|
+
</div>
|
943
|
+
<div class="footer">
|
944
|
+
<hr>Generated by GTK-Doc V1.28.1</div>
|
945
|
+
</body>
|
946
|
+
</html>
|