| [code][/code] suggestion | 
| Author: | Message: | 
| Felu Veteran Member
 
      
 
 Posts: 2223
 Reputation: 72
 31 /
  /  Joined: Apr 2006
 Status: Away
 
 | | RE: [code][/code] suggestion quote:Originally posted by Eljay
 I'm assuming this is meant for code snippets pasted in rather than typing code in directly.
 
 'this' as in the original post or my post? In case of the latter, I meant typing code in directly.
 
Edit: I get it, you were referring to the first post. I guess I just didn't read it properly.This post was edited on 07-25-2008 at 11:52 AM by Felu.
 | 
 | 
| 07-25-2008 11:51 AM |  | 
|  | 
| John Anderton Elite Member
 
      
 
  
 Posts: 3896
 Reputation: 80
 38 /
  /  Joined: Nov 2004
 Status: Away
 
 | | RE: [code][/code] suggestion quote:Originally posted by Nathan
 And add colour formatting if you're feeling in a good mood
  
 And remove smilies out of anything in the code (ive requested this before)
 
 
 code:
  
 
 
 use noparse. I already had asked WDZ and he said there are times when you need highlighting in code tags and some people apparently want smileys too    Anyway, you can noparse it when you want    Its not a big deal    
Also, 4 spaces is fine. Anything more than that would be too much imo  [
 KarunAB.com]
 
 
[img]http://gamercards.exophase.com/459422.png[ 
/img] | 
 | 
| 07-25-2008 01:15 PM |  | 
|  | 
| andrewdodd13 Senior Member
 
     
 
  Oh so retro
 
 Posts: 869
 Reputation: 16
 35 /
  /  Joined: Jan 2005
 
 | | RE: [code][/code] suggestion Tabs represent tab stops, not spaces, according to the ASCII standard. On Windows a tab stop is defined as 4 spaces, on some Unix systems it's 8.
 Besides. To preserve tabs, 1 tab = 	 .
 
 Of course, this only really works with Mono-spaced fonts.
 | 
 | 
| 07-25-2008 04:00 PM |  | 
|  | 
| CookieRevised Elite Member
 
      
 
  
 Posts: 15494
 Reputation: 173
 – /
  /  Joined: Jul 2003
 Status: Away
 
 | | RE: [code][/code] suggestion When tabs are used in code text lines (which is what we're talking about here; not about switching controls or technical ascii standards or whatever other context), then the only purpose of them is to indend the codelines so they are better structured.
 Doing this by spaces, preseving tab stops, or whatever else doesn't matter, even mono-spaced or variable spaced fonts doesn't matter, just as long as the codelines are indended. So I don't see no harm done in a simple replace of a tab character into a few spaces.
 
 Code highlighting would be nice too, but that isn't going to happen anytime soon. Automatic enclosing with [noparse] and using the <pre> tag is going to be worse, since then we can not use any highlighting or formatting (eg: bold) ourselfs anymore, which is very important.
 
 A simple replace of the tab character on the other hand is quite straightforward and easy to implement I think. And at least saves us from doing a manual ReplaceAll all the time when pasting code.
 This post was edited on 07-26-2008 at 03:42 PM by CookieRevised.
 .-= A 'frrrrrrrituurrr' for Wacky =-. | 
 | 
| 07-26-2008 03:37 PM |  | 
|  | 
| matty Scripting Guru
 
      
 
 Posts: 8327
 Reputation: 109
 40 /
  /  Joined: Dec 2002
 Status: Away
 
 | | O.P.  RE: [code][/code] suggestion quote:Originally posted by CookieRevised
 Code highlighting would be nice too, but that isn't going to happen anytime soon. Automatic enclosing with [noparse] and using the <pre> tag is going to be worse, since then we can not use any highlighting or formatting (eg: bold) ourselfs anymore, which is very important.
 
 Simple implemention of GeSHi  would be suffice.
 ![[Image: codetk6.jpg]](http://img514.imageshack.us/img514/1804/codetk6.jpg)  
 
For instance you could use:
 
[code=js][/code=js] or [code=php][/code=php] or [code=xml][/code=xml] and so on this will allow the forum to highlight different languages  This post was edited on 07-30-2008 at 04:27 AM by WDZ.
 | 
 | 
| 07-26-2008 03:47 PM |  | 
|  | 
| mattisdada Full Member
 
    
 
  RRElive.com
 
 Posts: 359
 Reputation: 4
 34 /
  /  Joined: Jan 2007
 
 | | RE: [code][/code] suggestion Yeah ive seen GeSHi being used on a few forums(or at least GeSHi like). Its really good, its an easy way to show your code. 
http://www.rrelive.com/RRElivev2
If you would like my theme for your phpBB3, please contact me.
 
Thy shouldnt be judged by thy rep givin to you, but by thy rep that you give. | 
 | 
| 07-29-2008 07:21 AM |  | 
|  | 
| Chrono forum admin
 
        
 
  ;o
 
 Posts: 6022
 Reputation: 116
 40 /
  /  Joined: Apr 2002
 Status: Away
 
 | | RE: [code][/code] suggestion WDZ already said once he wouldnt use geshi (you know he'd want to go through the source code of that, fixing bugs and stuff   ). But it is, indeed, a good idea.
 
WDZ, don't be lazy and fix the damn thing. I dont see the purpose of using the code tags if they still preserve smilies  This post was edited on 07-29-2008 at 11:23 AM by Chrono.
 | 
 | 
| 07-29-2008 11:22 AM |  | 
|  | 
| NanaFreak Scripting Contest Winner
 
      
 
 Posts: 1476
 Reputation: 53
 33 /
  /  Joined: Jul 2006
 
 | | RE: [code][/code] suggestion wait... has anyone even seen WDZ around? o.0 | 
 | 
| 07-29-2008 11:41 AM |  | 
|  | 
| Vilkku Veteran Member
 
      
 
  
 Posts: 1411
 Reputation: 27
 37 /
  /  Joined: Mar 2003
 
 | | RE: RE: [code][/code] suggestion quote:Originally posted by NanaFreak
 wait... has anyone even seen WDZ around? o.0
 
 Nitro scared him off with his talks about MyBB upgrade   | 
 | 
| 07-29-2008 12:35 PM |  | 
|  | 
| matty Scripting Guru
 
      
 
 Posts: 8327
 Reputation: 109
 40 /
  /  Joined: Dec 2002
 Status: Away
 
 | | O.P.  RE: [code][/code] suggestion Well maybe he should implement it just for now until he upgrades the forums to the latest MyBB which supports it. | 
 | 
| 07-29-2008 12:53 PM |  | 
|  | 
| Pages: (6): 
« First
 
«
 
 1
 2
 [ 3 ]
 4
 5
 6
 
»
 
Last » | 
|  |