PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/doc/tips/tip99.html

#
HTML | 15 lines | 9 code | 6 blank | 0 comment | 0 complexity | b83340baaefc405b888cfe3af7bf17ff MD5 | raw file
 1<html><body>
 2
 3You can change numbers from decimal to hexadecimal (or any other base for that matter) using the search and replace feature.<p>
 4
 5First select the number(s) to convert, and make sure <b>Search in selection</b> is selected in the search dialog box. Then
 6search for the following regular expression:<p>
 7
 8<code>.*</code><p>
 9
10And replace it with the following BeanShell snippet:<p>
11
12<code>Integer.toString(Integer.parseInt(_0),16)</code>
13
14</body>
15</html>