Closed skryv closed 10 years ago
@skryv
Just to make sure are you using the latest version of the plug-in? There were quite drastic changes recently. Can you please try to erase the plug-in folder completely and reinstall the plug-in?
Note this is how it looks in ST3:
Update: I have checked it in ST2 with fresh installation of the plug-in and this is the result I get:
I get no coloring in ST2 as well. Also -- isn't what you show just generic Markdown highlighting? There's no coloring specific to API Blueprint.
@aearly
Yes, it is a modified version of Markdown highlighter. However it is now bundled and packed with the plug-in so it is a step necessary for future additions over basic Markdown highlighting.
Not sure why you do not get the coloring in ST2, works well in ST3. I might not be able to get to this issue anytime soon. So if anyone could pick it up and PR it would be great.
I figured it out: You have to have an "extended" color scheme. For example, with the default Monokai theme most of the file is just considered "text" so it is not colored. If you install Monokai Extended you should see more specific Markdown highlighting. What extras do you add on top of the basic Markdown syntax?
@aearly
So if I understand it right, installing Monokai Extended somehow extends the basic Markdown coloring even if I am not using the Monokai theme? Sorry I am quite confused here.
Anyways. Here is my Packages directory content:
hiro:Packages zdenek$ ls -1
API Blueprint
Better CoffeeScript
Cucumber
HTML
Jade
LiveReload
Rails
SublimeLinter
Theme - Soda
Theme - Spacegray
User
sublime-text-puppet
sublimetext-markdown-preview
and User directory
hiro:Packages zdenek$ ls -1 User
Distraction Free.sublime-settings
Espresso (SL).tmTheme
Espresso Soda (SL).tmTheme
Gist.sublime-settings
GitHub.sublime-settings
Markdown.sublime-settings
MarkdownPreview.sublime-settings
Monokai Extended (SL).tmTheme
Package Control.cache
Package Control.last-run
Package Control.system-ca-bundle
Preferences.sublime-settings
SublimeLinter.sublime-settings
base16-ocean.dark (SL).tmTheme
base16-ocean.light (SL).tmTheme
Note I am not using Package Control.
Monokai Extended actually has different coloring for the various scopes the Markdown syntax grammar automatically parses out. e.g.
<dict>
<key>name</key>
<string>Markdown: heading</string>
<key>scope</key>
<string>markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#fd971f</string>
</dict>
</dict>
The default Monokai does nothing special for markdown, thus leaving it uncolored. I would assume that whatever color scheme you are using has these extra sections to handle markdown elements.
Installing & activating monokai extended indeed added better coloring. Thanks!
Toon
On 28 Jan 2014, at 23:33, Alexander Early notifications@github.com wrote:
Monokai Extended actually has different coloring for the various scopes the Markdown syntax grammar automatically parses out. e.g.
<dict> <key>name</key> <string>Markdown: heading</string> <key>scope</key> <string>markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown</string> <key>settings</key> <dict> <key>fontStyle</key> <string></string> <key>foreground</key> <string>#fd971f</string> </dict> </dict>
The default Monokai does nothing special for markdown, thus leaving it uncolored. I would assume that whatever color scheme you are using has these extra sections to handle markdown elements.
— Reply to this email directly or view it on GitHub.
Thanks @aearly!
I have updated the README file to capture this fact https://github.com/apiaryio/api-blueprint-sublime-plugin#markdown-highlighting-optional
@skryv Can we now close this issue?
Ok to close - tnx!
Op woensdag 29 januari 2014 heeft Z notifications@github.com het volgende geschreven:
Thanks @aearly https://github.com/aearly!
I have updated the README file to capture this fact https://github.com/apiaryio/api-blueprint-sublime-plugin#markdown-highlighting-optional
@skryv https://github.com/skryv Can we now close this issue?
Reply to this email directly or view it on GitHubhttps://github.com/apiaryio/api-blueprint-sublime-plugin/issues/5#issuecomment-33569266 .
Hello -
I really like apiaryio & sublime, so I would love to combine both :)
Unfortunately, the syntax highlighting does not work for me:
[User][]
is shown in yellowAny ideas on how to get more highlighting and/or description of what I could expect?
Thanks in advance!