File: tip8.html

package info (click to toggle)
jedit 4.3.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 12,288 kB
  • ctags: 10,215
  • sloc: java: 88,754; xml: 81,655; makefile: 53; sh: 26
file content (15 lines) | stat: -rw-r--r-- 479 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<html><body>

You can change numbers from decimal to hexadecimal (or any other base for that matter) using the search and replace feature.<p>

First select the number(s) to convert, and make sure <b>Search in selection</b> is selected in the search dialog box. Then
search for the following regular expression:<p>

<code>.*</code><p>

And replace it with the following BeanShell snippet:<p>

<code>Integer.toString(Integer.parseInt(_0),16)</code>

</body>
</html>