Coder Social home page Coder Social logo

Comments (7)

jimmysong avatar jimmysong commented on July 2, 2024 1

That's how you do callouts in asciidoc. Unfortunately, there really isn't any other way to comment longer inline.

from programmingbitcoin.

leechristie avatar leechristie commented on July 2, 2024

Agree, came here to say that.

from programmingbitcoin.

leechristie avatar leechristie commented on July 2, 2024

On closer inspection, the raw markdown files are written as "# <1>" which renders as " (1)", if the markdown were changed to "# (1)" or "## <1>" it would work, but I don't know if the way the authors have done this as "# <1>" because this is correct for the way the print book will be rendered. I don't know.

from programmingbitcoin.

educob avatar educob commented on July 2, 2024

I think those numbers should be at the left of the code like line numnbers in an editor.

from programmingbitcoin.

leechristie avatar leechristie commented on July 2, 2024

I think those numbers should be at the left of the code like line numnbers in an editor.

Python has no syntax for inline comments. Putting them at the left would comment out the line.

from programmingbitcoin.

educob avatar educob commented on July 2, 2024

I am lost here.
I mean in the book. Not the real python code.

from programmingbitcoin.

leechristie avatar leechristie commented on July 2, 2024

I am lost here.
I mean in the book. Not the real python code.

The reason I (and I'm guessing OP too) suggest denoting them with # is that the blocks of code in the book with (1) etc. on the end of the line don't make it clear to the reader that they're not supposed to type that if they type in the code. If you replace (1) with #(1) then it won't matter if the reader types those in.

from programmingbitcoin.

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.