Giter VIP home page Giter VIP logo

Comments (6)

heartsentwined avatar heartsentwined commented on July 30, 2024

:h TOhtml to get help.

:TOhtml does generate syntax-highlighted files, as long as a syntax is properly associated with a file. This usually detected automatically by the filetype, although you can force the issue by :set filetype=emblem.

Example:

Screenshot from 2013-04-18 06:46:03

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>~/dev/test.emblem.html</title>
<meta name="Generator" content="Vim/7.3">
<meta name="plugin-version" content="vim7.3_v10">
<meta name="syntax" content="emblem">
<meta name="settings" content="use_css,pre_wrap,expand_tabs">
<style type="text/css">
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #ffffff; background-color: #000000; }
body { font-family: monospace; color: #ffffff; background-color: #000000; }
.Comment { color: #6c6c6c; }
.Function { color: #af5f00; }
.String { color: #00ff00; }
.Keyword { color: #8080ff; }
-->
</style>
</head>
<body>
<pre>
<span class="Keyword">if</span><span class="String"> truthy</span>
  <span class="Function">linkTo</span><span class="String"> index</span>
<span class="Keyword">else</span>
<span class="Comment">  / oh no</span>

<span class="Keyword">each</span><span class="String"> some-iterator</span>
<span class="Comment">  / do something</span>
</pre>
</body>
</html>

from vim-emblem.

machty avatar machty commented on July 30, 2024

Hmm, my sample output from above is straight from the :TOhtml output for an emblem file, and filetype seems to be set correctly. Any idea what you might have set differently that gives you a bunch of markup but prevents me from getting it?

from vim-emblem.

heartsentwined avatar heartsentwined commented on July 30, 2024

Post your ~/.vimrc.

from vim-emblem.

machty avatar machty commented on July 30, 2024

Nevermind, problem seems to be on my end. Works on the MacVim app, but not in the terminal version. I'll figure out what's up and then post what I found here. It's only strange that the other syntax highlighters work fine in terminal vim with the TOhtml command.

from vim-emblem.

machty avatar machty commented on July 30, 2024

This ended up being some bizarre problem traceable to the solarized color scheme. I don't understand why it worked in the MacVim app but not in Terminal (even though both were colored properly), but when I changed to a different color scheme, the output in terminal was correct. Bizarre and annoying, but not a problem with vim-emblem (reproduced with .rb files too)

from vim-emblem.

heartsentwined avatar heartsentwined commented on July 30, 2024

And bizarrely environment-specific too, because I just tried it with solarized, and TOhtml is still working for me.

from vim-emblem.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.