Comments (6)
: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:
<!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.
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.
Post your ~/.vimrc
.
from vim-emblem.
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.
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.
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)
- Title of this repo says `ember-script` HOT 1
- Extra text operator highlighted on second line onwards
- Smart indentation
- Text blocks have color after first line HOT 7
- multiline comments HOT 5
- Different colors for helpers? HOT 7
- Colorize `in` to be same color as `each` HOT 3
- Using vim-emblem with tcomment does not comment out code correctly HOT 1
- New Iteration Style Breaks Highlighting HOT 3
- Not detecting *.em files HOT 1
- Using parenthesis to contain code with spaces breaks highlighting for line
- Update Readme HOT 1
- Assign this project to another maintainer HOT 2
- Only the first level of indentation is colored
- Multiline attribute syntax is not highlighted
- Glimmer Components
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-emblem.