/usr/share/doc/ruby-gtksourceview3/examples/sourcelanguagemanager.rb is in ruby-gtksourceview3 2.2.5-4build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/usr/bin/env ruby
=begin
sourcelanguagesmanager.rb - Ruby/GtkSourceView3 sample script.
Copyright (c) 2006-2014 Ruby-GNOME2 Project Team
This program is licenced under the same licence as Ruby-GNOME2.
$Id: sourcelanguagesmanager.rb,v 1.3 2007/06/03 02:11:07 mutoh Exp $
=end
require "gtksourceview3"
s = GtkSource::LanguageManager.new
s.language_ids.each do |v|
puts v
end
s.search_path.each do |v|
puts v
end
puts s.get_language("html").name
|