Warning, /office/kile/src/data/usermenu/example.xml is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="UTF-8"?> 0002 <UserMenu> 0003 <submenu> 0004 <title>Text</title> 0005 <menu type="text"> 0006 <title>Insert text</title> 0007 <text>Hi, I have been inserted ...</text> 0008 </menu> 0009 <menu type="text"> 0010 <title>Insert text (replace selection)</title> 0011 <text>This text has replaced the current selection...</text> 0012 <needsSelection>true</needsSelection> 0013 <replaceSelection>true</replaceSelection> 0014 </menu> 0015 <menu type="text"> 0016 <title>Bold text (without selection)</title> 0017 <text>\;textbf{%C}</text> 0018 </menu> 0019 <menu type="text"> 0020 <title>Italic text (with selection)</title> 0021 <text>\;textit{%M}</text> 0022 <needsSelection>true</needsSelection> 0023 <useContextMenu>true</useContextMenu> 0024 <replaceSelection>true</replaceSelection> 0025 </menu> 0026 <menu type="text"> 0027 <title>Small caps (with or without selection)</title> 0028 <text>\;textsc{%M%C}</text> 0029 <replaceSelection>true</replaceSelection> 0030 </menu> 0031 <separator/> 0032 <menu type="text"> 0033 <title>pageref</title> 0034 <text>\;pageref{%R}</text> 0035 </menu> 0036 <menu type="text"> 0037 <title>cite</title> 0038 <text>\;cite{%R}</text> 0039 </menu> 0040 <separator/> 0041 <menu type="text"> 0042 <title>Environment (center)</title> 0043 <text>\;begin{center}\n%E%C\n\;end{center}\n</text> 0044 </menu> 0045 <menu type="text"> 0046 <title>Environment (tabular)</title> 0047 <text>\;begin{tabular}{%B}\n%B\n\;end{tabular}\n</text> 0048 </menu> 0049 </submenu> 0050 <separator/> 0051 <menu type="file"> 0052 <title>File contents</title> 0053 <filename>/etc/hostname</filename> 0054 <selectInsertion>true</selectInsertion> 0055 </menu> 0056 <separator/> 0057 <menu type="program"> 0058 <title>Execute Program</title> 0059 <filename>/bin/date</filename> 0060 <parameter>| perl -n -e 'print "Today is $_"'</parameter> 0061 <insertOutput>true</insertOutput> 0062 </menu> 0063 <menu type="program"> 0064 <title>Execute Program (with selection)</title> 0065 <filename>perl</filename> 0066 <parameter>-p -e 's/(.)/\($1\)/g' %M</parameter> 0067 <needsSelection>true</needsSelection> 0068 <replaceSelection>true</replaceSelection> 0069 <insertOutput>true</insertOutput> 0070 </menu> 0071 </UserMenu>