This file is indexed.

/usr/share/tdiary/contrib/plugin/code-prettify.rb is in tdiary-contrib 3.2.2-1.

This file is owned by root:root, with mode 0o644.

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
21
22
23
# Source code embedded plugin for tDiary.
# Copyright (C) 2012 Koichiro Ohba <koichiro@meadowy.org>
# License under MIT.

add_header_proc do
  <<-EOS
<link href="js/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/prettify/prettify.js"></script>
<script type="text/javascript"><!--
jQuery.event.add(window, "load", function(){
  prettyPrint();
});
//-->
</script>
EOS
end

def code(content, lang = nil)
  <<-EOS
<pre class="prettyprint#{lang ? ' lang-' + lang : ''}">
#{content}</pre>
EOS
end