Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Multiple line syntax

Felicia Ann Kelley edited this page Oct 6, 2021 · 66 revisions

image

  1. any legal java string
  2. 0-n white-space characters (space,\t, \r, \n)
  3. /** standard java documentation comment start flag
  4. ~ or = indicates that multiline string (Note: ** and ~ are closely at the order, no space)
    ~: Ignore blank lines at the beginning and the first non-blank line as the indenting standards
    =: Keep full format
  5. ! [option] Indicates multiline string can contain variables that start with $.
    $var or ${var} or ${Java program code fragment}
    xyz means string: xyz
  6. 0-n white-space characters
  7. { multiline string start flag
  8. any text content(Note: If text content contains end flag */ then use &;/ instead)
  9. } multiline string end flag
  10. 0-n white-space characters
  11. */ standard java documentation comment end flag

Plugin installed, you can follow the above syntax for writing multiline string. plugin detail

Drag to your running Eclipse workspace to install monalisa-db

image

References

In order to easy writting, please setup Java editor templates, so just need to input "mline", it will automatically insert the multiple-line syntax!

Template setting: Windows->Preferences->Java->Editor->Templates, create new name: mline, input:

""{${cursor}}*/

image

Special Note: Move mouse on the light red areas, you can see the original java code.

image

Example

java String lines = ""/**~ { SELECT * FROM user WHERE name="abc" }*/; System.out.println(lines);

sql SELECT * FROM user WHERE name="abc"


java String name="abc"; System.out.println(""/**~!{ This is an example with var$: name="$name" OR name=${name} OR ${"xyz".equals(name)?"A":"B":"C"} }*/);

sql This is an example with var$: name="zzg" OR name=zzg OR B


java System.out.println(" "{ SELECT * FROM user WHERE name="zzg" }*/);

sql SELECT FROM user WHERE name="xyz"


java String lines = "Hello {"World!"} \r\n }*/; System.out.println(lines);

sql Hello {"World!"} \r\n


java String lines = "H"/**= { ello / "World!" }/; System.out.println(lines);

sql H ello */ "World!"

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.