-
Notifications
You must be signed in to change notification settings - Fork 25
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
Code blocks look horrible #1
Comments
Nice work on this theme by the way. I'd like some idea of how to go about fixing the code blocks. I am thinking that I'd like to use the {% blockquote %} syntax and the GitHub flavoured ( ''' ruby ) style syntax. At the moment I can't get see where I would update the sass to get this to update, especially as I'm new to sass and octopress. I'd greatly appreciate some help. |
Hi, sorry for the late reply. Didn’t get any e-mail notification for your comment for some reason so only saw it just now. Octopress seem to support all the types of code block syntax you want, and more. Have a look at the “Sharing Code Snippets” page in their documentation. The resulting HTML should be quite similar. To fix the look of the code blocks I think you could start by looking at the following files, ordered by relevance.
If you fix it I would greatly appreciate a pull request (or a patch), it would be very nice to be able to publish posts with code in them :) |
Thanks rastersize, I'll have a go and will submit if I manage anything worthwhile. I did notice last night that if I used the GitHub markdown (e.g. ''' ruby) syntax for code blocks in markdown and made changes to the sass folder in the octopress root directory (in sass/custom/colors.scss), then I got them looking ok, but now I see that it would be better to do this at the theme level. Will dive in again and get back to you. |
Any news on getting the code blocks actually fixed? |
I haven’t done anything yet. @codeofthewoosters how is it going for you? |
@rastersize, @jbrooksuk - apologies for not getting back to you guys sooner. I ended up using the Github Flavoured Markdown semantics to include code snippets and it seems to be working fine for me. So for example instead of using:
...i use this instead (just swap out the language keyword for your language of choice):
although having checked you can get the same thing using
Then in order to tweak the colors, I edited the following file:
by uncommenting the following section...
I think this looks fine except that when you highlight the code it doesn't color too well. It seems that when I make these changes to the .themes/BlogTheme directory files themselves, the changes don't show when I run |
@codeofthewoosters No worries, glad to see it seems to be working for you. I will probably try it myself at some point in the near future 😄 Thanks for testing/trying it by the way! Yea, you must run |
Ok, must have missed that. Maybe this will be the impetus to actually get me blogging again. Life keeps inconveniently getting in the way of it. Cheers! |
No description provided.
The text was updated successfully, but these errors were encountered: