Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

//[offset-down] (or up) problem? #144

Open
shiffman opened this issue Oct 1, 2012 · 2 comments
Open

//[offset-down] (or up) problem? #144

shiffman opened this issue Oct 1, 2012 · 2 comments
Assignees

Comments

@shiffman
Copy link
Collaborator

shiffman commented Oct 1, 2012

offset for code comments is causing some problems, i.e.:

[source,java]
----
int total = 10;

//[offset-down] Have you ever seen this syntax before? This is a new feature in Java 1.6 that Processing now supports. It allows us to specify in advance what type of object we intend to put in the ArrayList.
ArrayList<Particle> plist = new ArrayList<Particle>();
void setup() {
  for (int i = 0; i < total; i++) {
    // An object is added to an ArrayList with add().
    plist.add(new Particle());
  }
}
----

renders to:

issue

Also, offset sometimes adds a lot of space where unnecessary, i.e.

issue

@stevenklise
Copy link
Collaborator

TODO: Go through the book and mark which offset-up aren't flush and adjust alignment.

@stevenklise
Copy link
Collaborator

TODO: Convert html javascript code to jQuery and test on all browsers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants