Over a million developers have joined DZone.

Insert Formatted Strings into Your Java Code

DZone's Guide to

Insert Formatted Strings into Your Java Code

· Java Zone ·
Free Resource

Learn how to stop testing everything every sprint and only test the code you’ve changed. Brought to you by Parasoft.

Are you tired of quoting when inserting formatted text as a String value in to your Java source code?

Let's have a look at this gadget, Clipboard Modificator.


Hello world

 In Java code as a String value:

String xmlMessage = 
" Hello world \n"+

 It isa free plugin to the NetBeans IDE and its called Clipboard Modificator.

  • Latest version can do the both ways, and even lets you to specify your own regular expression.

    See more informations on:


  • Get the top tips for Java developers and best practices to overcome common challenges. Brought to you by Parasoft.


    Opinions expressed by DZone contributors are their own.

    {{ parent.title || parent.header.title}}

    {{ parent.tldr }}

    {{ parent.urlSource.name }}