revraz Posted September 8, 2008 Share Posted September 8, 2008 Is it possible to add line numbers when someone uses code or php brackets? Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/ Share on other sites More sharing options...
wildteen88 Posted September 8, 2008 Share Posted September 8, 2008 Yes it is possible and can come in handy come to think of it, I have a few ideas that spring to mind. However as previously stated the Admins do not wish to install multiple modifications as this is will require more maintenance, especially when upgrading. You could suggest this feature to the developers of SMF. Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-636771 Share on other sites More sharing options...
revraz Posted September 8, 2008 Author Share Posted September 8, 2008 No problem, thanks. I've seen it on VB forums that I frequent and thought it was a nice touch to identify problem lines. Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-636807 Share on other sites More sharing options...
Daniel0 Posted September 8, 2008 Share Posted September 8, 2008 If there is a readily available mod that's compatible then I won't mind installing it. I'm not going to dive into the code and do it myself though. Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-636813 Share on other sites More sharing options...
wildteen88 Posted September 8, 2008 Share Posted September 8, 2008 If there is a readily available mod that's compatible then I won't mind installing it. I'm not going to dive into the code and do it myself though. There is one available however when you copy the code, you also copy the line numbers! The mod is available here. It Works fine with 1.1.6 just tested it. Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-636825 Share on other sites More sharing options...
revraz Posted September 8, 2008 Author Share Posted September 8, 2008 They use vBulletin, so I am not sure about SMF. The one they use does not copy the line numbers. Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-636826 Share on other sites More sharing options...
Daniel0 Posted September 8, 2008 Share Posted September 8, 2008 If there is a readily available mod that's compatible then I won't mind installing it. I'm not going to dive into the code and do it myself though. There is one available however when you copy the code, you also copy the line numbers! The mod is available here. It Works fine with 1.1.6 just tested it. Hmm... I don't like the way that mod handles the line numbers. Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-636827 Share on other sites More sharing options...
revraz Posted September 8, 2008 Author Share Posted September 8, 2008 http://qbnz.com/highlighter/ http://www.donationcoder.com/Forums/bb/index.php?topic=3687.msg95129 Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-636834 Share on other sites More sharing options...
wildteen88 Posted September 8, 2008 Share Posted September 8, 2008 http://qbnz.com/highlighter/ http://www.donationcoder.com/Forums/bb/index.php?topic=3687.msg95129 I was just looking in to Geshi. The problem is they dont share how they added Geshi to SMF. Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-636838 Share on other sites More sharing options...
tmallen Posted September 12, 2008 Share Posted September 12, 2008 Would you guys be interested in me porting my SyntaxHighlighter plugin for Vanilla to SMF? It works very well, see for yourself. Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-639732 Share on other sites More sharing options...
revraz Posted September 12, 2008 Author Share Posted September 12, 2008 That's pretty nice Tmallen. Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-639970 Share on other sites More sharing options...
ngreenwood6 Posted December 23, 2008 Share Posted December 23, 2008 so I guess this is a no go? i would also like to see this considering the amount of people that show errors that come up on line 19 (or whatever) and dont tell you what line it is lol. Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-722818 Share on other sites More sharing options...
GingerRobot Posted December 24, 2008 Share Posted December 24, 2008 I don't really think it'd be that useful. If the posted code is stupidly long, most of us don't bother to find the error anyway. And if it's not, it's more than likely that the code posted is a snippet from their file, which would screw up the line numbering anyway. Even if there were some offset option, I can't see people who don't bother to point out the line in question bothering to use this option. Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-723023 Share on other sites More sharing options...
gevans Posted December 26, 2008 Share Posted December 26, 2008 Most of the time I copy and paste code straight into my editor anyway. Numbers galore!! Quote Link to comment https://forums.phpfreaks.com/topic/123256-add-line-numbers-to-code-brackets/#findComment-724013 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.