Author |
Topic  |
|
Da_Stimulator
DEV Team Forum Moderator
    
USA
3373 Posts |
Posted - 01 December 2004 : 07:02:20
|
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
|
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 |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
|
Nertz
Junior Member
 
Canada
341 Posts |
Posted - 01 December 2004 : 10:21:02
|
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 |
 |
|
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
Posted - 01 December 2004 : 10:40:25
|
Cool !!! |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 01 December 2004 : 12:09:02
|
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. |
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
|
Da_Stimulator
DEV Team Forum Moderator
    
USA
3373 Posts |
Posted - 01 December 2004 : 22:28:40
|
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 |
 |
|
Da_Stimulator
DEV Team Forum Moderator
    
USA
3373 Posts |
Posted - 02 December 2004 : 06:13:15
|
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 |
 |
|
Da_Stimulator
DEV Team Forum Moderator
    
USA
3373 Posts |
Posted - 02 December 2004 : 07:59:46
|
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 |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
|
Da_Stimulator
DEV Team Forum Moderator
    
USA
3373 Posts |
Posted - 02 December 2004 : 14:11:06
|
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 |
 |
|
|
Topic  |
|