Coder Social home page Coder Social logo

Comments (5)

Morgul avatar Morgul commented on May 23, 2024

Additionally, hitting 'Apply' doesn't seem to update any documents I have open behind the preferences modal, so I have to hit 'OK', see if I like the color I picked, and then re-open the preferences pane.

from idea-multimarkdown.

vsch avatar vsch commented on May 23, 2024

It is a bug.

Yes, I completely agree. It is a fix that I am planning to implement in the immediate future. If it is any consolation, I feel your pain. It took me forever to get the colors tweaked for the Default color scheme since I could not see the results until I closed the settings dialog. :(

The difficulty in adding the sample text is from the original markdown plugin that I forked. It uses Annotations to do syntax highlighting because it parses with pegdown. So it does not have a Lexer that IntelliJ expects and uses for syntax highlighting. The sample pane does not invoke the Annotator so adding a sample text will result in text that is not highlighted, which would not be any better.

Last night, I figured out how I can wrap pegdown so it will present Parser and Lexer interfaces, without major kludging. I had to do something close to it to get the highlighting working in Annotator. So there is a light at the end of that tunnel.

I thought I would need to re-implement pegdown in Grammar-Kit to be able to add all the IntelliJ goodies like error annotations, code navigation, folding, formatting, code completion, etc. Now I can do it much faster by wrapping it and get to a rewrite much later.

from idea-multimarkdown.

Morgul avatar Morgul commented on May 23, 2024

That makes total sense. I'd previously been using the plugin you forked, and one of my biggest complaints was always the lack of imbedded syntax highlighting for html blocks. I had caught the issue that they said it would be a huge rewrite, so I'm super excited that you figured out a quick work around!

So, If I'm understanding correctly, this bug won't get fixed until you do the wrapping of pegdown? (Doesn't bother me; I finished changing my colors, and now probably won't mess with it again for months) At the same time, I should get (or be close to getting) some other features I've really wanted, so all in all, this is pretty exciting.

from idea-multimarkdown.

vsch avatar vsch commented on May 23, 2024

Part of the same Annotations problem. Hitting apply does not invoke Annotator until after the dialog is closed.

I am planning the fix out by September 8th, or sooner if I can. It is stopping me from adding all the other stuff that I want, including injected languages, like HTML. Once you get used to IntelliJ creature comforts it is an irritant to work without them.

from idea-multimarkdown.

vsch avatar vsch commented on May 23, 2024

@Morgul, Lexer implemented.Plugin available for download from the official site. I also fixed the TODO not being parsed. However, the todo's are limited to comments . Could not make it work for now anywhere else. Also fixed Scratch files not being accepted by the plugin.

screen shot 2015-08-24 at 3 20 05 am

screen shot 2015-08-24 at 3 21 28 am

from idea-multimarkdown.

Related Issues (20)

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.