Skip to main content
added 8 characters in body; edited tags
Source Link
pnuts
  • 17.8k
  • 5
  • 54
  • 103

I have some C++ source files in a GitHub reporepository 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 these files?

Is there a method to how GitHub identifies the source language for syntax highlighting purposes? It

It looks like it uses only the file extension, but is there a way to force a particular language?

I have some C++ source files in a GitHub repo 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 these files?

Is there a method to how GitHub identifies the source language for syntax highlighting purposes? It looks like it uses only the file extension, but is there a way to force a particular language?

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 these files?

Is there a method to how GitHub identifies the source language for syntax highlighting purposes?

It looks like it uses only the file extension, but is there a way to force a particular language?

Tweeted twitter.com/#!/StackWebApps/status/314415816999329792
Colour of Darkness: The lightning call and the thunder has a breakfast by itself
Source Link

How to force github's Force GitHub syntax highlighting language identification?on source files

How does github identify the source language for syntax highlighting purposes? Does it use only the file extension, or is there a way to force a particular language?

I have some C++ source files in a githubGitHub repo, which have an extension of ".C".C and are using C syntax highlighting, which I don't want. How

How can I cause githubset GitHub to apply C++ syntax highlighting to these files?

Is there a method to how GitHub identifies the source language for syntax highlighting purposes? It looks like it uses only the file extension, but is there a way to force a particular language?

How to force github's syntax highlighting language identification?

How does github identify the source language for syntax highlighting purposes? Does it use only the file extension, or is there a way to force a particular language?

I have some C++ source files in a github repo, which have an extension of ".C". How can I cause github to apply C++ syntax highlighting to these files?

Force GitHub syntax highlighting language on source files

I have some C++ source files in a GitHub repo 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 these files?

Is there a method to how GitHub identifies the source language for syntax highlighting purposes? It looks like it uses only the file extension, but is there a way to force a particular language?

Source Link
nibot
  • 479
  • 4
  • 10

How to force github's syntax highlighting language identification?

How does github identify the source language for syntax highlighting purposes? Does it use only the file extension, or is there a way to force a particular language?

I have some C++ source files in a github repo, which have an extension of ".C". How can I cause github to apply C++ syntax highlighting to these files?