|
From: Jarek C. <jar...@po...> - 2012-02-16 06:42:53
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dale, thanks a lot for making it so clear. I hope you or Alan will
put this into docs. Please also include a remark about "keyword1"
being occupied by html itself, so that the languages embedded in
html would not use it.<br>
<br>
Jarek<br>
<br>
W dniu 2012-02-16 06:04, Dale Anson pisze:
<blockquote
cite="mid:CAH...@ma..."
type="cite">I've been busy with work and have finally found time
to get back to this. Please see my comments below.<br>
<br>
<div class="gmail_quote">On Wed, Feb 8, 2012 at 12:46 AM, Jarek
Czekalski <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jar...@po...">jar...@po...</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Dale, could
you first consider what is the token "markup" for? Define it<br>
please. I think it is xml, sgml, html.<br>
</blockquote>
<div><br>
"Markup" is for those items/elements in xml and xml-like
languages/modes (e.g. html, tld, ant, mvn, jsp, etc) that are
not specifically defined in those languages. "Markup" may have
other meanings in other languages, but this discussion began
in reference to html specifically.<br>
<br>
"Keywords" are for those items/elements of a language/mode
that are specifically defined in those languages. <br>
<br>
Some examples:<br>
<br>
In html, "body" is a keyword. An element named "foo" is not
and would be markup.<br>
<br>
In xml, "INCLUDE" is a keyword. An element named "foo" is not
and would be markup. <br>
<br>
In jsp, "page" is a keyword. An element named "foo" is not and
would be markup.<br>
<br>
In ant, "target" is a keyword. An element named "foo" is not
and would be markup.<br>
<br>
<br>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
If you mark html with markup and jsp with keywordX - wouldn't
you get<br>
the same desired effect? And you wouldn't violate the markup
token in<br>
any sense :)<br>
</blockquote>
<div><br>
Better would be to mark html keywords as keywords and
non-keywords as markup. My comment about jsp was for jstl
tags, which are widely used and well known. My thought is to
mark these as KEYWORD2 or 3 to differentiate them from other
tags.<br>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
As html contents is joined in the same files with javascipt,
jsp, php<br>
and hell knows what more, it will be difficult to have
different tokens<br>
for all the possible contents. My idea is to have xml, sgml,
html as<br>
markup and the programming languages mentioned (like php) as
keywords.<br>
What do you think about it?<br>
</blockquote>
<div><br>
I'm not sure what you're meaning here. Assuming that other
modes delegate appropriately, and most do, there is no problem
and in fact there is better consistency across the modes. For
example, "body" would be marked the same in html, jsp, and
php.<br>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
After it's decided, it would be good to add a few explanating
words to<br>
Token Types (Chapter 10. Mode Definition Syntax), so that
others won't<br>
need to solve the puzzle again in the future. Token types are
very<br>
general but the most common modes, like html, php, java should
serve as<br>
guidelines on how to you use them. I suggest these guidelines
be put in<br>
that chapter.<br>
<br>
</blockquote>
<div><br>
I agree, that chapter is a bit lacking. It would be good to
have some basic guidelines spelled out there.<br>
</div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Looks like it is the opposition to your idea, but I hope it
doesn't<br>
prevent you from reaching the goal. I'm only trying to make it
more<br>
general and documented.<br>
<br>
Jarek<br>
<br>
Dale Anson pisze:<br>
> I think 'markup' is more appropriate for xml (extensible
markup<br>
> language) or sgml (standard generalized markup language)
than it is<br>
> for html or jsp (java server pages) or php (? used to be
personal home<br>
> page, not sure what it stands for now) or the other html<br>
> derivatives/super sets. Html has specific words for its
elements,<br>
> where xml does not. The ant mode is a good example of an
xml syntax<br>
> that properly highlights specific words. Html and jsp
should do the<br>
> same. As it is, all the tags are marked as markup and
look the same,<br>
> so there might as well not be any syntax highlighting.
My thought is<br>
> to change the html element words to keywords, have jsp
mode delegate<br>
> to html for consistency, and update jsp mode to include
jstl names as<br>
> maybe keyword2 or 3. Doing this on my local makes both
html and jsp<br>
> much easier to read.<br>
><br>
> Jarek, I didn't take your comments as opposition, so
unless someone<br>
> specifically says 'wait, don't do it', I'll probably get
this done and<br>
> committed in the next few days.<br>
><br>
> Thanks,<br>
><br>
> Dale<br>
><br>
><br>
<br>
<br>
------------------------------------------------------------------------------<br>
Keep Your Developer Skills Current with LearnDevNow!<br>
The most comprehensive online learning library for Microsoft
developers<br>
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5,
CSS3, MVC3,<br>
Metro Style Apps, more. Free future releases when you
subscribe now!<br>
<a moz-do-not-send="true"
href="http://p.sf.net/sfu/learndevnow-d2d" target="_blank">http://p.sf.net/sfu/learndevnow-d2d</a><br>
<span class="HOEnZb"><font color="#888888">--<br>
-----------------------------------------------<br>
jEdit Developers' List<br>
<a moz-do-not-send="true"
href="mailto:jEd...@li...">jEd...@li...</a><br>
<a moz-do-not-send="true"
href="https://lists.sourceforge.net/lists/listinfo/jedit-devel"
target="_blank">https://lists.sourceforge.net/lists/listinfo/jedit-devel</a><br>
</font></span></blockquote>
</div>
<br>
</blockquote>
</body>
</html>
|