Best theme to show code snippets?
-
I am a software developer by trade, and I would like to create a site to show snippets of code that I use in my everyday work. Right now when I’m building something, I have to sort through my previous work to find how I did this one thing. I work in HTML, CSS, Javascript, C#, and T-SQL. I tried browsing the ENORMOUS list of themes, and most of them involve lots of photos, which doesn’t really apply. I would appreciate any suggestions.
-
You best bet is not wordpress.COM. It is wordpress.ORG.
WordPress.COM users have code restrictions. No JavaScript, no form codes, except these https://en.support.wordpress.com/forms/contact-form https://en.support.wordpress.com/forms/, no tracking codes, no advertising codes, and no unsupported embeds of unsupported iframes can be used on any wordpress.COM hosted sites.
Please read:
https://en.support.wordpress.com/code/
allowed HTML tags list – https://en.support.wordpress.com/code/#html-tags
https://en.support.wordpress.com/code/#javascript
https://en.support.wordpress.com/code/#flash-and-other-embeds
Posting Source Code https://en.support.wordpress.com/code/posting-source-code/WordPress.COM and WordPress.ORG are completely separate and have different username accounts, logins, features, run different versions of some themes with the same names, and have separate support documentation and separate support forums. Read the differences here http://en.support.wordpress.com/com-vs-org/
wordpress.org support
The wordpress.ORG support forum is at http://wordpress.org/support. The wordpress.ORG login link is here https://login.wordpress.org/ If you do not have an account yet then click Create an account https://login.wordpress.org/register/ and if you have lost an account password click Lost password? https://login.wordpress.org/lostpassword/
WordPress.org support docs are at https://codex.wordpress.org/Main_Page
See also https://apps.wordpress.org/support/ for app support. -
The only themes we can use on WordPress.COM hosted sites are here https://wordpress.com/themes/ The way your theme is designed to function and the features it has are found at the detailed description page, for example at https://wordpress.com/theme/resonar and that’s where the live demo site link is also found. We cannot change how any theme functions. We can do some CSS editing to change appearance only if we have the required upgrade.
WordPress.COM is a multi user blogging platform with off the shelf themes and it’s aimed for use by those who do not code. Each theme is uniquely designed. We wordpress.com bloggers do not have access to the template files underlying our themes and we cannot edit them, as our blogs share a common architecture, and as all blogs wearing the same theme use the same underlying template, found on the live demo site for each theme.
Does Customize let me edit HTML?
No. Customize allows you to edit fonts, colors, and CSS only. You can change the appearance of a theme, but not its HTML markup or PHP code. If you require this functionality, please consider moving your blog to a web host that supports theme code modifications. You can read more about why here http://support.wordpress.com/code/, and find a suitable host here http://get.wp.com/hosting/.
Custom design – Frequently Asked Questions http://en.support.wordpress.com/custom-design/#frequently-asked-questions -
Hi, @dave260817,
Assuming your purpose is to display snippets of code, rather than adding the code to the back-end, you should be okay to stay on WordPress.com.
But to be sure, confirm with this support doc that all of the ones you want to display are supported: https://en.support.wordpress.com/code/posting-source-code/If the answer is yes,
P2 might work for you (no focus on images there). :)
You can search the Themes by features, too.
Maybe one of these? https://wordpress.com/themes?s=news
@TT I was taking a look at this and then got sidetracked. Only posting my response after yours b/c I read their question differently. :) Best Regards!
-
Thank you all, for the quick responses. Yes, @christinemaze, I just want to organize and display snippets of code. I won’t need to execute the code from a web page. I’ll check out the link you posted.
-
-
dave260817 – just wanted to clarify a few things about posting code on WordPress.com – and thanks for pitching in, christinemaze and timethief.
WordPress.com code restrictions don’t apply to code snippets placed in code tags. You can post any type of code – even if it’s not listed here – it just won’t have syntax highlighting.
As for what theme to use, it depends what look-and-feel appeals to you. Something minimalist like Independent Publisher 2 might be well suited, if you like the style.
One thing to note is that there is a conflict between Infinite Scroll on WordPress.com and syntax highlighting. Posts loaded below the initial batch of pages may not have code snippets fully highlighted.
-
– even if it’s not listed here – it just won’t have syntax highlighting.
Thank you for that clarification, @kathrynwp. I see that now. :)
-
Thanks, @kathrynwp. The link on posting source code is great, it has all my faves listed. I’ll give it a try soon.
-
- The topic ‘Best theme to show code snippets?’ is closed to new replies.