File: tip55.html

package info (click to toggle)
jedit 5.1.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,632 kB
  • ctags: 10,965
  • sloc: java: 96,611; xml: 92,194; makefile: 55; sh: 30; cpp: 6; python: 6
file content (17 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html><body>
The <b>Utilities</b>&gt;<b>BeanShell</b>&gt;<b>Evaluate For Selected Lines</b> command
evaluates the specified BeanShell expression for each selected line,
replacing the contents of that line with the return value of the
expression.<p>

For example, you can use this to add a line number to each selected
line, by evaluating the following expression:<p>

<code>(index+1) + " " + text</code><p>

Or you can add a prefix and suffix to each selected line, with this
expression:<p>

<code>"&lt;listitem&gt;" + text + "&lt;/listitem&gt;"</code>

</body></html>