Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 playing around... boredom... need some input
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 01 December 2004 :  07:02:20  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Script I'm working on

That url should demonstrate what I've got done so far....
The highlighted lines arent highlighted for any reason, just to demonstrate how the highlighting works....

anyone care to input some ideas to incorporate into the script?

-Stim

Edited by - Da_Stimulator on 01 December 2004 07:03:17

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 01 December 2004 :  08:27:20  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
Not bad..could be useful. The only thing I didn't like was the highlighting words being case sensitive (rtrim wouldn't highlight, but RTrim would).

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 01 December 2004 :  09:36:25  Show Profile  Visit MarcelG's Homepage
Wow!! The line-numbers feature is great!
It would be marvelous to integrate that with the view source mod, and with the [code][/code] tags!

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

Nertz
Junior Member

Canada
341 Posts

Posted - 01 December 2004 :  10:21:02  Show Profile
quote:
Originally posted by marcelgoertz

Wow!! The line-numbers feature is great!
It would be marvelous to integrate that with the view source mod, and with the [code][/code] tags!


Line numbers are great if it don't interfere with the selection of code for copying into aranae or notepad or similar code/text editor.

cheers,
Nat

Sadly, most Family Court Judges wrongfully reward opportunistic gold diggers
that use our children unjustly as "instruments" of power.


www.fathers-4-justice-canada.ca
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 01 December 2004 :  10:40:25  Show Profile
Cool !!!
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 01 December 2004 :  12:09:02  Show Profile  Visit dayve's Homepage
My recommendations:

1. Use POST instead of GET in your form method.
2. Line up line numbers with actual text in code.
3. Don't use table cells for each line break. (personally I would use a concatenation of the line numbers and code, or <span>'s.)

I did something very similar to this with my display_source.asp script but never completed it. I got the idea from ASP101 or a similar site.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 01 December 2004 :  12:40:12  Show Profile  Visit dayve's Homepage
Found it...

Demo: http://www.hafresno.org/testing/vc.asp?source=../default_sub.asp&numbered=yes

I was going to incorporate searched highlighting with this script I found but never followed through with it. Here is the code to this script if you're interested

Source Code: http://www.hafresno.org/testing/vc.asp?source=vc.asp&numbered=yes

I liked this because of the security options, highlighting, line numbering and the ability to drill down on links within the script. In my demo link above, I blocked any scripts being viewed that were in the INCLUDES directory.


Edited by - dayve on 01 December 2004 13:14:22
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 01 December 2004 :  22:28:40  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
quote:
Originally posted by dayve

My recommendations:

1. Use POST instead of GET in your form method.
2. Line up line numbers with actual text in code.
3. Don't use table cells for each line break. (personally I would use a concatenation of the line numbers and code, or <span>'s.)

I did something very similar to this with my display_source.asp script but never completed it. I got the idea from ASP101 or a similar site.


1. I want people to be able to link to files with highlighted code & stuff
2. they were lined up... I thought, but anyway now its different to where you can highlight the code without highlighting the line numbers
3. See 2.

-Stim
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 02 December 2004 :  06:13:15  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Ok... got a problem for SOME oddball reason

source viewing script
The code highlighted is NOT working, and I've narrowed it down to this.

inAsp is somehow getting set to "False" when it should be "True", hence it not highlighting the code the way I want. However, I've looked it over and I cant find where to pinpoint the problem...

any ideas?

-Stim

Edited by - Da_Stimulator on 02 December 2004 06:32:41
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 02 December 2004 :  07:59:46  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
nevermind... got it working the way I want...

now to set the colors to something more readable... any suggestions? I tried doing bold colors without the background, but that offset the line numbers...

without the bold it wasnt really defined, so I threw in the black background, but now I feel its a bit much...

-Stim
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 02 December 2004 :  12:03:22  Show Profile  Visit dayve's Homepage
I wouldn't use background color for highlighting your keywords. I would just colorize the text itself, kind of like modern code editors... or the example I listed earlier.

http://www.hafresno.org/testing/vc.asp?source=vc.asp&numbered=yes

Other than that, it's looking good.


Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 02 December 2004 :  14:11:06  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
With the help of (dayve) and good 'ol Webmonkey I got a decent (I think) color pattern down....

however, somehow in the process of doing this, I corrupted my "highlight" lines feature, which sucks cuz I liked that... and I cant seem to get it working again.

-Stim
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.1 seconds. Powered By: Snitz Forums 2000 Version 3.4.07