Answered Java code tag formatting issue

Discussion in 'Forum Feedback' started by teej107, Dec 4, 2014.

Thread Status:
Not open for further replies.
  1. Offline


    If you edit a post that has a Java code tag, the code loses its formatting which can make it hard to read. The only fix is to add in the spaces again by yourself which can get quite annoying. This is the only code tag that does this.
  2. Offline


    I'm pretty sure the PHP tags prevent this from happening, as well as looking much nicer until you use generics.

    List list = new ArrayList();
    void add() {
    add(new Object());
    void remove() {}
    Edited twice, and still no space change
  3. Offline


    xTrollxDudex Yeah. The Java code tag is the only tag with the spacing issues. I myself have moved to using the PHP one as well. But I just had an idea about posting this bug here when I told another person about the same thing. xD
  4. Offline


    xTrollxDudex The PHP tag is pretty nice but it doesn't have line numbers :(
  5. Skionz Solution: Use PHP and put in line numbers yourself :) Discourages copy & pasting I suppose.
  6. Offline


    AdamQpzm Good idea! I remember seeing one tutorial a while back which used pictures to stop people from copying and pasting. Although I guess it would be harder to edit the code in the images.
    teej107 and AdamQpzm like this.
  7. Skionz Ah yes, I remember that. It was quite amusing. Maybe the solution is to keep the code in a repository or something and just rescreenshot when you need to edit? :p
    teej107 and Skionz like this.
  8. Offline

    ZeldoKavira Administrator Curse

    This is caused by an old plugin. This plugin was left in for the sake of keeping old posts readable. Please use the code tag now. code=java]Code here[/code (With the brackets of course)

    (Side note: PHP tag has line numbers enabled)
    Last edited: Dec 10, 2014
    teej107 and AdamQpzm like this.
Thread Status:
Not open for further replies.

Share This Page