<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 June 2013 23:50, Carsten Allefeld <span dir="ltr"><<a href="mailto:carsten.allefeld@googlemail.com" target="_blank">carsten.allefeld@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br></blockquote><div><br></div><div style>Hi,</div><div style><br></div><div style><br></div><div style>As you say in your original email, Scintilla is a separate project.  We try not to have a modified Scintilla since that implies patching and testing every time there is an update.  So you should submit the Scintilla patches to that project at <a href="http://www.scintilla.org">www.scintilla.org</a>.  If you feel that the Markdown lexing is buggy, that is also where you should discuss it.</div>
<div style><br></div><div style>When the modified version of Scintilla is released we can apply the other patches, it would be best if you could make a pull request for them so they don't get forgotten.</div><div style>
<br></div><div style>I am not sure if the changes to the filetypes.markdown file affect only the math styles, if they don't you probably should discuss it first so we can see if other markdown users like or loath them. </div>
<div style><br></div><div style>Cheers</div><div style>Lex</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I recently cooked up a few minor patches to geany and sent them to<br>
Nick, see email quoted below. He told me it would be best if I<br>
subscribe to this list, so here I am.<br>
<br>
About me: I am a physicist-turned-neuroscientist, and I write texts<br>
including equations on a daily basis. Of course LaTeX is the<br>
established tool for that, but though it is very powerful it is also<br>
incredibly cumbersome to use. If you're writing just a short note the<br>
preamble can be longer than the actual text, you have to type \ { }<br>
and long environment and command names all the time, if you just make<br>
a small mistake you get cryptic unhelpful error messages, etc. etc. I<br>
guess that's why MS Word is so popular. ;-) However, writing formulas<br>
in anything else than LaTeX is even more cumbersome. That is why I was<br>
happy to find out that pandoc, a popular Markdown processor, supports<br>
LaTeX output and just copies LaTeX equations from the Markdown source<br>
into the LaTeX source. Great, the only thing missing is a versatile<br>
editor / lightweight IDE, and this is where Geany comes in. I wrote a<br>
few wrapper scripts in order to start Markdown+LaTeX processing from<br>
Geany through pandoc & pdflatex and show the result in acroread. – As<br>
I wrote below, I'm not a developer. I know some programming languages,<br>
including C and a bit of C++, but the only one I use regularly is<br>
Matlab.<br>
<br>
An addition to the email below: I have found since that the syntax<br>
highlighting especially of display equation blocks "$$-$$", but also<br>
of embedded images "![]()" is very unstable. It is possible that this<br>
is due to a bug introduced by me, but I don't see how since I<br>
basically duplicated existing code. Do you have any other reports<br>
about problems with the Markdown syntax highlighting code?<br>
<br>
Cheers,<br>
Carsten<br>
<br>
<br>
<br>
On 26 May 2013 15:28, Carsten Allefeld <<a href="mailto:carsten.allefeld@googlemail.com">carsten.allefeld@googlemail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I hope this is the right way to contact you, if not please tell me<br>
> how. I'm writing because I put together a few small patches to geany<br>
> to extend the syntax highlighting. I did not subscribe to the<br>
> developer mailing list because I am not a professional developer, just<br>
> someone who can find his way around a source file, and I'm unlikely to<br>
> contribute much more in the future.<br>
><br>
> The background is the following: Markdown comes in many flavors, one<br>
> of the most popular is the implementation in Pandoc<br>
> <<a href="http://johnmacfarlane.net/pandoc/" target="_blank">http://johnmacfarlane.net/pandoc/</a>>. Pandoc supports several backends,<br>
> besides html also docx and LaTeX. One of Pandoc's Markdown extensions<br>
> is to allow LaTeX-style equations in the Markdown text, which are<br>
> copied as-is if converting to LaTeX, but also if generating html,<br>
> since there are high-quality math typesetting libraries for websites<br>
> implemented in JavaScript (most notably MathJax<br>
> <<a href="http://www.mathjax.org/" target="_blank">http://www.mathjax.org/</a>>) that can render them. As a scientist I use<br>
> this feature of Pandoc very extensively. When I recently discovered<br>
> geany as a high-quality text editor supporting Markdown syntax<br>
> highlighting, one of the few things I missed is highlighting of<br>
> embedded equations.<br>
><br>
> The attached patches, generated via diff -u versus geany-1.23.tar.gz,<br>
> enable this. The changes basically duplicate the code for syntax<br>
> highlighting of inline code (`x`) and code blocks (indented), and use<br>
> them to enable highlighting of inline equations ($x$) and block<br>
> equations ($$x$$). I included changes to filetypes.markdown, which<br>
> defines styles for the new attributes mathi and mathd, but also<br>
> revises the highlighting styles for other Markdown attributes.<br>
><br>
> Three of the six patches actually apply to Scintilla, which I<br>
> understand is a project whose code is included in geany, but developed<br>
> independently. I considered contacting the Scintilla developers, but<br>
> since the changes to Scintilla only make sense if combined with<br>
> changes to geany, I thought it better to contact you.<br>
><br>
> Best Regards,<br>
> Carsten Allefeld<br>
<br>_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a><br>
<br></blockquote></div><br></div></div>