/jEdit/tags/jedit-4-5-pre1/doc/tips/tip8.html
# · HTML · 15 lines · 9 code · 6 blank · 0 comment · 0 complexity · b83340baaefc405b888cfe3af7bf17ff MD5 · raw file
- <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>