Closed GoogleCodeExporter closed 8 years ago
How would you expect the contents of a SCRIPT tag to be formatted?
Is text/os-template XML or HTML+tags?
Should I just not format scripts with a non-standard type?
Original comment by mikesamuel@gmail.com
on 14 Aug 2009 at 6:02
text/os-template is xml.
While I understand that non-javascript <script> is quite unusual, this is a
part of
the standard :)
I would suggest the ability to specify how to format a specific script type,
with
some reasonable defaults - i.e. javascript for missing type, no formatting for
unknown types.
Thank you.
Original comment by bmiz...@google.com
on 14 Aug 2009 at 6:12
text/os-template is not part of any standard.
Original comment by mikesamuel@gmail.com
on 14 Aug 2009 at 7:50
I meant that the HTML standard permits non-javascript <script> type.
http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.2
Original comment by bmiz...@google.com
on 14 Aug 2009 at 8:37
Yes, I know. I was involved in
http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/
97ab60942eadfd8c
How would you specify how to format a specific script type?
Original comment by mikesamuel@gmail.com
on 14 Aug 2009 at 8:49
My preference would be
<script type="some-type" prettify-lang="xml">
xml goes here
</script>
In fact this could be a generic mechanism - i.e.
<pre prettify-lang="c++">
some c++ code here
</pre>
Boris
Original comment by bmiz...@google.com
on 14 Aug 2009 at 9:08
For the latter there is already a mechanism. See the second question in the
FAQ:
http://google-code-prettify.googlecode.com/svn/trunk/README.html
I also think this library should prettify source code as it is, not extend the
language to make it easier to prettify.
Original comment by mikesamuel@gmail.com
on 14 Aug 2009 at 9:16
Original comment by mikesamuel@gmail.com
on 19 Jul 2010 at 9:02
Original issue reported on code.google.com by
bmiz...@google.com
on 21 May 2009 at 6:56