Link to home
Start Free TrialLog in
Avatar of Stephen Kairys
Stephen KairysFlag for United States of America

asked on

NOTEPAD++ Meaning of (+) and (-) Icons

Hi,
I downloaded a hunk of Javascript code. When I display it in NOTEPAD++, it can display in two ways.

NOTE: Apologies for the very small font in the screenshots. Please click on a screenshot to display it in a bigger format. :)

1. With a red minus sign at the left, with line numbers 1 and 3 visible.
User generated image
2. If I click the red minus sign, it changes to a red plus sign, and I now see lines 1, 2 and 3.
User generated image
I've attached the file (filename scrubbed).

Also (this issue may or may not be related): The JS program code displays with no line breaks. (That's how it came down from the site.) Can this issue be remedied? (If you experts feel this issue should be a separate question, please let me know and I'll be happy to comply.)

Thanks,
Steve
For_EE_Example_JS_File.JS
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Stephen Kairys

ASKER

@Dave,
Thank you for the "beautified" code.  That's very helpful! :)

One question though: What determines the presence of the +/-? I just typed in a two-line JS file (with two linebreaks) and those icons (for lack of a better word) did not appear.

Steve
@Dave,
Cancel that last comment! :) Zephyr_Hex cleared it up for me. :) Points coming shortly....Thanks again.
Great teamwork Dave/Zephyr_Hex! EE Rocks! :)

To anyone reading this question: please look at both the best solution and assisted solution. :)

Thanks, everyone! Have a good weekend.
You're welcome, glad to help.