|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
||||
|
||||
|
Auto CODE blocks
Lots of users, especially new users, forget to add the CODE tags around code samples. Is there any possibility of changing the validation on the editor to check for <% ... %> blocks. If there is no CODE block in the message, either add this or warn the user?
Obviously, this only works if users have been kind enough to add the <% ... %> blocks in the post, but it might cut down on a few unecessary edits by the mods
__________________
selwonk If I've posted some code above, you might think it looks a bit simplistic. It might be. I'd rather people tried the next step themselves rather than getting a full solution on a plate. That way they learn more! |
|
#2
|
||||
|
||||
|
Excellent suggestion.
|
|
#3
|
||||
|
||||
|
It's good in theory, but I can't see it working. It's output rubbish
in some cases. What if the user posted this: Code:
<% some asp code here %> some html code here <% some more asp code here %> That would be output like thi: Code:
<% some asp code here %> some html code here Code:
<% some more asp code here %> I really don't see any way of automating the [code] tags, you just need to 'politely' remind n00bs to use them if they forget... ![]() Although having an alert() appear if the forum detects <% but not [code] would be quite handy I think... |
|
#4
|
||||
|
||||
|
Yep - it would break it up. The alert would be a nice compromise though...
|
|
#5
|
||||
|
||||
|
<script test
Oh, it seems the script isn't working here... ![]() Code:
(<script)|(<?) Code:
(\<script)|(\<\?) |
|
#6
|
||||
|
||||
|
The new alert works great - thanks for that...
|
![]() |
| Viewing: ASP Free Forums > Forum Information > Suggestions & Feedback > Auto CODE blocks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|