I've seen people's websites with code blocks that resembles markdown code blocks. However, on the side or top of the code block, it would display the language of the code (e.g. html/python/java...). Is that achievable using jekyll for github pages? What setting would I have to do to make the langugage visible in the corner of the code block? Thanks!
How to show the code language on top of jekyll markdown code block
751 Views Asked by Tim At
1
There are 1 best solutions below
Related Questions in MARKDOWN
- Jekyll: Using liquid tags in .md files
- Pandoc - HTML to Markdown not processing nested unordered lists correctly
- why Special characters apostrophe and others shows like this ’, in HTMl file
- —- " added in HTML when converting MarkDown file to HTML using Jekyll tool
- Mathematics not working when converting from LaTeX to docx (through markdown) using pandoc
- Grouping MarkDown elements in to DIV element or Custom html tag
- How to document all npm dependencies from package.json into README.md
- Can I render and display Markdown from Github into MEAN stack website dynamically?
- How to use Python filter with Pandoc to convert md with tikz to html on Windows 8.1
- How to modify the line width of ipython notebook markdown cell
- suppress console output in r markdown, but keep plot
- Jekyll: Liquid Capture and Markdownify Tag Issues
- Nested bullets with code blocks in markdown for Github
- Three-level nested list in kramdown
- Extracting URL and anchor text from Markdown using Python
Related Questions in JEKYLL
- Jekyll install on Windows error message
- Jekyll: Using liquid tags in .md files
- why Special characters apostrophe and others shows like this ’, in HTMl file
- —- " added in HTML when converting MarkDown file to HTML using Jekyll tool
- Check if cookie exists using Jekyll Liquid
- Show only headers in Octopress RSS
- Grouping MarkDown elements in to DIV element or Custom html tag
- Jekyll JSON incorrect character encoding
- Creating a gruntfile to compile Jekyll and push a subfolder to Github
- github page blog from jekyll needs force reload to show changes with posts
- sorting of collection does not work
- gulp deploy rsync error // missing module lodash
- Jekyll: Liquid Tags used in Sub-directories
- Setting up Polymer with Jekyll?
- Make array elements lowercase with Liquid filters for sorting
Related Questions in CODEBLOCKS
- BOOST & GCC, undefined reference to boost
- How collapse all XAML code sections at once?
- Compiling PDCurses into ".a", error with mingw command
- Undefined reference to `linrg_` in IMSL library with gfortran in CodeBlocks
- what is the wrong with that loop?
- C++ compiler error in CodeBlocks & Xcode
- CodeBlocks c++ - Can't use Thread because the compiler doesn't support it
- SFML 2.3 and CodeBlocks error compilation
- code::blocks can't create files
- How to include a "custom" library in Code::Blocks? (Windows 7)
- missing sfml-graphics-d-2.dll when using SFML
- Error : Cmake can't generate openCV
- Error LNK2019 LNK2001
- GDB hangs on breakpoint (using Codeblocks & CppUTest)
- selected_real_kind in gfortran and code::blocks
Related Questions in GITHUB-PAGES
- Opening PDF in a browser with Github Pages
- Check if cookie exists using Jekyll Liquid
- github page blog from jekyll needs force reload to show changes with posts
- Jekyll - How can I make avoid a paragraph to be added on a YAML frontmatter markdownify item
- Three-level nested list in kramdown
- GitHub Pages Custom Domain Settings
- Using Jekyll for Website without Blog
- Redirect Github pages Jekyll site into sub-directory
- Jekyll Deployment on Github Pages doesn't format correctly (No styling)
- Is it possible to set up a custom domain with GitHub Pages, but keep the original github.io link working without redirection?
- can Jekyll process a markdown file and save it somewhere besides <directory>
- add domain for the github pages, but not effect the project page
- Viewing a separate branch of GitHub Page
- Include HTML5 file in another HTML5 file
- Handle url redirects in angular-cli application deployed to github pages
Related Questions in ROUGE
- installing pyrouge gets error in ubuntu
- pyrouge tuple out of index
- Understanding ROUGE vs BLEU
- Adding a custom syntax-highlighting theme in jekyll and rouge
- Rouge syntax highlighter options on Kramdown fenced code-blocks
- Rouge Score Append A List
- SyntaxError print(*args, **kwargs)
- SyntaxError: invalid syntax for print(file=saveto, *args, **kwargs)
- GitHub Pages mangling syntax highlighting after upgrade to Jekyll 3
- Fenced code blocks in Jekyll with kramdown?
- Rouge-L score very low
- How to use markdown code highlighting for Liquid in JekyllRB?
- Where can I find "all Rouge options"?
- How to show the code language on top of jekyll markdown code block
- Rouge Syntax Highlighting in GitHub Pages
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

Without getting into too much custom styling, you could start with this CSS:
This works off the code blocks that Jekyll generates with the
{% highlight %}tags, for example:This would put
yaml(or whatever your data-lang is) into the top right corner of your code block. This does mean you have to set the language for each highlight block.