#Specific xhtml formatting question

10 messages · Page 1 of 1 (latest)

iron lance
#

So in my CSE class, the homeworks are given like this: http://web.cse.ohio-state.edu/software/2221/web-sw1/assignments/homeworks/methods.html. I was wondering specifically, does anybody know how to format sections of code in an xhtml document to look like the blue sections of code in the link above (i.e. https://i.imgur.com/UzDZkte.png)? I have attempted to look it up and have looked through several xhtml guides but can't find instructions on this specific kind of formatting.

Not sure if this is the right subreddit to ask this, but any help would be appreciated.

swift geyser
#

couldn't you like... look in the source of the html

#

also

subreddit
lmao

iron lance
swift geyser
#

it's a table with 1 row comprised of 2 cells, one for the line numbers and the other for the contents
it's all styled as css via classes

iron lance
#

gotcha, thank you!

swift geyser
#

oh and with code, missed that

#

the classes are for colors it seems

iron lance
#

right