Questions tagged [syntax-highlighting]

For questions about the font styles and colours applied to code to aid reading and error detection. See tags [formatting], [highlight] and [text-formatting] where not specifically for code.

Filter by
Sorted by
Tagged with
16
votes
5answers
6k views

Force GitHub syntax highlighting language on source files

I have some C++ source files in a GitHub repository which have an extension of .C and are using C syntax highlighting, which I don't want. How can I set GitHub to apply C++ syntax highlighting to ...
7
votes
4answers
7k views

How to highlight code in Blogger?

I am using Google Blogger and would like to highlight the code. I tried a couple of ways, but not satisfied with the results. Can anyone share how they have done it?
4
votes
1answer
1k views

How to use Google Code Prettify on WordPress

I'm writing my blog posts using Windows Live Writer and I use Syntax4writer whenever I need to include codes in the post. The output for Syntax4Writer doesn't look good on the Bueno theme by ...
2
votes
0answers
98 views

How to highlight code AutoIt in Blogger?

I am using Google Blogger and would like to highlight the code. I tried a couple of ways, but not satisfied with the results. AutoIt Code it is not supported on JavaScript. Can anyone share how they ...
1
vote
1answer
723 views

Can I use Syntax Highlighter by Alex Gorbatchev with Windows Command Prompt commands in Blogger?

I use Syntax Highlighter by Alex Gorbatchev in my blog on Blogger. It perfectly works with all the programming languages I use. Recently I needed to highlight Windows Command Prompt commands and I ...
1
vote
1answer
4k views

How to add scripts to blog?

I want to add some source code in my blog in Blogger, so I did a search. In the website I found a similar question and in the solutions I found a solution: Copy the following code: <link href='...
0
votes
1answer
117 views

Hosting SyntaxHighlighter on Dropbox

My blog is a low-traffic blog and occasionally contains code. I decided to host SyntaxHighlighter myself and uploaded files to my Dropbox and configured my blog accordingly. I am able to see the code ...
0
votes
1answer
887 views

How to generate HTML for syntax highlighted code? [closed]

I want to post on my blog some syntax highlighted code. Sites like PasteBin allows you to do this, but they don't provide the HTML code hassle-free. Instead they suggest you to embed tags like this: ...
0
votes
0answers
17 views

Formatting code in the Description field

Is it possible to use something similar to the code block macro used in Confluence, to add a collapsible section with syntax highlighting for code or json within the Jira issue description? Even if ...