/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
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- <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>