Stephen Kairys
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.
2. If I click the red minus sign, it changes to a red plus sign, and I now see lines 1, 2 and 3.
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
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.
2. If I click the red minus sign, it changes to a red plus sign, and I now see lines 1, 2 and 3.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@Dave,
Cancel that last comment! :) Zephyr_Hex cleared it up for me. :) Points coming shortly....Thanks again.
Cancel that last comment! :) Zephyr_Hex cleared it up for me. :) Points coming shortly....Thanks again.
ASKER
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.
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.
ASKER
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