I have my Java/C code running in NetBeans IDE. Where i have some mess algorithms which is like largest/longest something like following:
if () {
while() {
for() {
}
}
} elseif( ) {
for() {
while() {
for() {
}
}
}
} elseif( ) {
do {
for () {
if() {
} else {
}
}
} while() ;
} elseif( ) {
switch() {
if(a.starsWith()) {
for() {
do {
for() {
if() {
} elseif() {
} else {
switch() { }
}
}
} while();
}
}
}
} elseif( ) {
} elseif( ) {
} elseif( ) {
}
Therefore, to find out how do i get this following type of indent highlighted lines?

Not sure what your question is, and the image you attached is too small:-(
Anyways, you can specify the type of indent you want NetBeans to use for your code in Preferences -> Editor -> Formatting. You can choose the indents to be tabs, or (recommended) spaces. There is a box where you type in the number of spaces you want per tab.
Also, you can make NetBeans format the code automatically for you, under Source -> Format.
Hope this helps!