1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Suggestion] template editor columns

Discussion in 'XenForo Suggestions' started by Rickey Otano, Aug 21, 2010.

  1. Rickey Otano

    Rickey Otano New Member

    On thing I think that would really set Xenforo apart for other software would be having a column that shows the lines. Like Github does because its something I've found very frustrating while using vbulletin. I make a mistake and forget to close an if condition and I get an error saying bleh on line 235. I then have to copy the whole template into either expression web or dreamweaver(which ever one I'm using at the time) just to know what line I need to check.

    I think many people can agree here that they've had this problem. This way you know how many lines are in that template and can easily find that line in the editor. I have not seen any software forum,CMS,blog etc... thats implementing it and it would really save time when your making templates or changing templates.

    I know I sometimes explain things badly and pictures are worth 1,000 words. Of course it wont have all the other stuff just the column that shows the number of lines. For implementation I think doing it client site would be easier then adding the load to the server.

  2. James

    James Well-Known Member

    So you're basically saying the textarea used to edit templates should be numbered? I completely agree :)

    I also think the textarea should keep indented text then just compress it all when its saved.
  3. Rickey Otano

    Rickey Otano New Member

    Yeah to me it would make template editing easier because its a real pain when you do make an error and it gives you a line were the error is but no way to find the line in the editor.
  4. Shanj

    Shanj Well-Known Member

    Me too.
  5. EQnoble

    EQnoble Well-Known Member

    agreed +1
  6. Green Cat

    Green Cat Active Member

    This + syntax couloring please
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Doesn't Notepad++ do this?
  8. James

    James Well-Known Member

    Notepad++ has numbered lines and syntax highlighting indeed. It'd be good if it was integrated into the forum though. I was so sick of people referencing their errors with line numbers then I had to c+p the code and search for the line. The more stuff readily available on the forum, the more chance I have of actually doing the task being requested!
  9. Darfuria

    Darfuria Active Member

    Agree, good suggestion.
  10. Brogan

    Brogan XenForo Moderator Staff Member

    Do people actually do code changes in the ACP?

    Surely the correct way to do it is with a dedicated editor?
  11. James

    James Well-Known Member

    I do template edits in vBulletin via the ACP. I also write BBCode in vBulletin via the ACP.

    When doing major changes, yes I use an editor of some sort but it is not always required. Numbered lines would help us make the changes.

    I also think numbered lines are basically necessary in this day and age, so I would like the CODE, HTML and PHP BBCodes to have line numbering.
  12. Crazyfruitbat

    Crazyfruitbat Well-Known Member

    If it's something very quick I use the ACP. If it could look like a headache I'll use the original file and backup any copies in case something goes wrong.

    But yes, I like having the lines numbered.
  13. Jim Boy

    Jim Boy Well-Known Member


    Any chance of getting line numbers in the template editor etc?

Share This Page