Coder Social home page Coder Social logo

Comments (6)

NullVoxPopuli avatar NullVoxPopuli commented on September 26, 2024

those look the same :-
(and actually invalid, as you are missing a comma)

from beautifyruby.

MattDMo avatar MattDMo commented on September 26, 2024

Put your code in a code block by first indenting each line 4 spaces, then adding additional spaces as needed to actually show indentation. For example,

    attr_accessible :id,
      :name
      :description

vs.

    attr_accessible :id,
        :name
        :description

both of which look the same if you don't have those first 4 spaces. If you don't like constantly hitting the space bar, use code block fencing by putting 3 backticks () before and after your code. If you enter the name of the programming language after the backticks at the top of the code block (ruby) you'll get syntax highlighting.

Use that Preview button up at the top left to see how things look! Follow that link up at the top right to read about GitHub Flavored Markdown. I particularly like @adam-p's Markdown Cheatsheet, too.

from beautifyruby.

Altonymous avatar Altonymous commented on September 26, 2024

Sorry didn't realize it didn't do the code formatting. I've updated the original ticket. Yeah I knew about that just didn't realize.

from beautifyruby.

MattDMo avatar MattDMo commented on September 26, 2024

no problems, just trying to do my part to educate others :)

from beautifyruby.

CraigWilliams avatar CraigWilliams commented on September 26, 2024

You can also wrap your code in three back ticks and specify the language "ruby" and then close with ""

from beautifyruby.

CraigWilliams avatar CraigWilliams commented on September 26, 2024

@Altonymous This is not something I am willing to work on. If you want to make the change and make it an optional preference setting, I will gladly merge it in though.

from beautifyruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.