<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Visual Studio shader syntax highlighting part 2</title>
	<atom:link href="http://www.horsedrawngames.com/shader-syntax-highlighting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.horsedrawngames.com/shader-syntax-highlighting/</link>
	<description>Horse Drawn Games</description>
	<lastBuildDate>Tue, 12 Jun 2018 14:36:54 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Sam</title>
		<link>http://www.horsedrawngames.com/shader-syntax-highlighting/#comment-111</link>
		<dc:creator><![CDATA[Sam]]></dc:creator>
		<pubDate>Thu, 04 May 2017 00:59:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.horsedrawngames.com/?p=191#comment-111</guid>
		<description><![CDATA[Thanks for your bug report. It sounds like there&#039;s a conflict with Nsight for some reason. I&#039;ve added your report as an issue over here https://github.com/samizzo/nshader/issues/14. If you have any further info please post it there. I&#039;ll try to find some time to look into it.]]></description>
		<content:encoded><![CDATA[<p>Thanks for your bug report. It sounds like there&#8217;s a conflict with Nsight for some reason. I&#8217;ve added your report as an issue over here <a href="https://github.com/samizzo/nshader/issues/14" rel="nofollow">https://github.com/samizzo/nshader/issues/14</a>. If you have any further info please post it there. I&#8217;ll try to find some time to look into it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: StanleyW</title>
		<link>http://www.horsedrawngames.com/shader-syntax-highlighting/#comment-110</link>
		<dc:creator><![CDATA[StanleyW]]></dc:creator>
		<pubDate>Wed, 03 May 2017 15:52:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.horsedrawngames.com/?p=191#comment-110</guid>
		<description><![CDATA[Hello!

there are some problems.

I have Visual Studio 2015 (with Nsight) and Visual Studio 2017. NShader just working on Visual Studio 2017. When using Visual Studio 2015 (with Nsight) to open the GLSL file, it&#039;s just a normal text editor.

But on my other computer only Visual Studio 2015 (with Nsight), NShader can work.

So I think it&#039;s not Nsight&#039;s problem, right?
And how can I solve this problem? :D]]></description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>there are some problems.</p>
<p>I have Visual Studio 2015 (with Nsight) and Visual Studio 2017. NShader just working on Visual Studio 2017. When using Visual Studio 2015 (with Nsight) to open the GLSL file, it&#8217;s just a normal text editor.</p>
<p>But on my other computer only Visual Studio 2015 (with Nsight), NShader can work.</p>
<p>So I think it&#8217;s not Nsight&#8217;s problem, right?<br />
And how can I solve this problem? <img src="http://www.horsedrawngames.com/2014/wp-includes/images/smilies/icon_biggrin.gif" alt=":D" class="wp-smiley" /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.horsedrawngames.com/shader-syntax-highlighting/#comment-109</link>
		<dc:creator><![CDATA[Sam]]></dc:creator>
		<pubDate>Mon, 01 May 2017 11:15:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.horsedrawngames.com/?p=191#comment-109</guid>
		<description><![CDATA[Thanks! Some people have had some problems, but they&#039;ve been hard to reproduce, so it&#039;s great to hear it&#039;s working for most people in 2017!]]></description>
		<content:encoded><![CDATA[<p>Thanks! Some people have had some problems, but they&#8217;ve been hard to reproduce, so it&#8217;s great to hear it&#8217;s working for most people in 2017!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OpenGl</title>
		<link>http://www.horsedrawngames.com/shader-syntax-highlighting/#comment-108</link>
		<dc:creator><![CDATA[OpenGl]]></dc:creator>
		<pubDate>Mon, 01 May 2017 08:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.horsedrawngames.com/?p=191#comment-108</guid>
		<description><![CDATA[Works without any problems in VS2017 Community Edition.
Thanks]]></description>
		<content:encoded><![CDATA[<p>Works without any problems in VS2017 Community Edition.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.horsedrawngames.com/shader-syntax-highlighting/#comment-100</link>
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Wed, 23 Nov 2016 15:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.horsedrawngames.com/?p=191#comment-100</guid>
		<description><![CDATA[Hey,

It seems to work in Visual Studio 2017 as well :).

Thank you very much for this, @Sam!! :)]]></description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>It seems to work in Visual Studio 2017 as well :).</p>
<p>Thank you very much for this, @Sam!! <img src="http://www.horsedrawngames.com/2014/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 8Observer8</title>
		<link>http://www.horsedrawngames.com/shader-syntax-highlighting/#comment-98</link>
		<dc:creator><![CDATA[8Observer8]]></dc:creator>
		<pubDate>Wed, 07 Sep 2016 05:35:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.horsedrawngames.com/?p=191#comment-98</guid>
		<description><![CDATA[It will work for highlighting but I&#039;m not sure that Ctrl+K, Ctrl+D will work corrently for html files.

May be it will usefull for somebody who want to use WebGL shader from files:

var VSHADER_SOURCE = null;
var FSHADER_SOURCE = null;

function main()
{
    // ...

    readShaderFile(gl, &#039;vShader.glsl&#039;, &#039;v&#039;);
    readShaderFile(gl, &#039;fShader.glsl&#039;, &#039;f&#039;);
}

function readShaderFile(gl, fileName, shader)
{
    var request = new XMLHttpRequest();

    request.onreadystatechange = function ()
    {
        if (request.readyState === 4 &amp;&amp; request.status !== 404)
        {
            onReadShader(gl, request.responseText, shader);
        }
    }

    request.open(&#039;GET&#039;, fileName, true);
    request.send();
}

function onReadShader(gl, fileString, shader)
{
    if (shader == &#039;v&#039;)
    {
        VSHADER_SOURCE = fileString;
    }
    else if(shader == &#039;f&#039;)
    {
        FSHADER_SOURCE = fileString;
    }

    if (VSHADER_SOURCE != null &amp;&amp; FSHADER_SOURCE != null)
    {
        start(gl);
    }
}

function start(gl)
{
    // Initialize the shaders
    if (!initShaders(gl, VSHADER_SOURCE, FSHADER_SOURCE))
    {
        console.log(&quot;Failed to initialize the shaders&quot;);
        return;
    }
    // ...
}]]></description>
		<content:encoded><![CDATA[<p>It will work for highlighting but I&#8217;m not sure that Ctrl+K, Ctrl+D will work corrently for html files.</p>
<p>May be it will usefull for somebody who want to use WebGL shader from files:</p>
<p>var VSHADER_SOURCE = null;<br />
var FSHADER_SOURCE = null;</p>
<p>function main()<br />
{<br />
    // &#8230;</p>
<p>    readShaderFile(gl, &#8216;vShader.glsl&#8217;, &#8216;v&#8217;);<br />
    readShaderFile(gl, &#8216;fShader.glsl&#8217;, &#8216;f&#8217;);<br />
}</p>
<p>function readShaderFile(gl, fileName, shader)<br />
{<br />
    var request = new XMLHttpRequest();</p>
<p>    request.onreadystatechange = function ()<br />
    {<br />
        if (request.readyState === 4 &amp;&amp; request.status !== 404)<br />
        {<br />
            onReadShader(gl, request.responseText, shader);<br />
        }<br />
    }</p>
<p>    request.open(&#8216;GET&#8217;, fileName, true);<br />
    request.send();<br />
}</p>
<p>function onReadShader(gl, fileString, shader)<br />
{<br />
    if (shader == &#8216;v&#8217;)<br />
    {<br />
        VSHADER_SOURCE = fileString;<br />
    }<br />
    else if(shader == &#8216;f&#8217;)<br />
    {<br />
        FSHADER_SOURCE = fileString;<br />
    }</p>
<p>    if (VSHADER_SOURCE != null &amp;&amp; FSHADER_SOURCE != null)<br />
    {<br />
        start(gl);<br />
    }<br />
}</p>
<p>function start(gl)<br />
{<br />
    // Initialize the shaders<br />
    if (!initShaders(gl, VSHADER_SOURCE, FSHADER_SOURCE))<br />
    {<br />
        console.log(&#8220;Failed to initialize the shaders&#8221;);<br />
        return;<br />
    }<br />
    // &#8230;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.horsedrawngames.com/shader-syntax-highlighting/#comment-97</link>
		<dc:creator><![CDATA[Sam]]></dc:creator>
		<pubDate>Wed, 07 Sep 2016 05:21:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.horsedrawngames.com/?p=191#comment-97</guid>
		<description><![CDATA[Ahh I see! That&#039;s a bit more complicated but I think it might work if you associate NShader with the file extension of your html file. But it would then apply the syntax highlighting to the entire file.]]></description>
		<content:encoded><![CDATA[<p>Ahh I see! That&#8217;s a bit more complicated but I think it might work if you associate NShader with the file extension of your html file. But it would then apply the syntax highlighting to the entire file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 8Observer8</title>
		<link>http://www.horsedrawngames.com/shader-syntax-highlighting/#comment-96</link>
		<dc:creator><![CDATA[8Observer8]]></dc:creator>
		<pubDate>Wed, 07 Sep 2016 05:19:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.horsedrawngames.com/?p=191#comment-96</guid>
		<description><![CDATA[&gt; Sorry I’m not exactly sure what you want to do.

It is WebGL. Please, see this link: https://msdn.microsoft.com/en-us/library/windows/apps/dn457645.aspx

But now I use file lile .glsl. and it not actual for me. I can use your tools.]]></description>
		<content:encoded><![CDATA[<p>&gt; Sorry I’m not exactly sure what you want to do.</p>
<p>It is WebGL. Please, see this link: <a href="https://msdn.microsoft.com/en-us/library/windows/apps/dn457645.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/windows/apps/dn457645.aspx</a></p>
<p>But now I use file lile .glsl. and it not actual for me. I can use your tools.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.horsedrawngames.com/shader-syntax-highlighting/#comment-95</link>
		<dc:creator><![CDATA[Sam]]></dc:creator>
		<pubDate>Wed, 07 Sep 2016 05:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.horsedrawngames.com/?p=191#comment-95</guid>
		<description><![CDATA[Thanks! Unfortunately I can&#039;t add those options because at the moment NShader doesn&#039;t do any code completion or any of that stuff for formatting. That&#039;s why I suggested HLSL Tools for Visual Studio. That plugin has those features.]]></description>
		<content:encoded><![CDATA[<p>Thanks! Unfortunately I can&#8217;t add those options because at the moment NShader doesn&#8217;t do any code completion or any of that stuff for formatting. That&#8217;s why I suggested HLSL Tools for Visual Studio. That plugin has those features.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 8Observer8</title>
		<link>http://www.horsedrawngames.com/shader-syntax-highlighting/#comment-94</link>
		<dc:creator><![CDATA[8Observer8]]></dc:creator>
		<pubDate>Wed, 07 Sep 2016 05:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.horsedrawngames.com/?p=191#comment-94</guid>
		<description><![CDATA[It is very nice tool. I use shader files now (not in scripts tags)

Please, add two checkboxes to Options -&gt; Formatting -&gt; &quot;New Lines&quot;:
- &quot;Place open brace on new line for functions and structures&quot;
- &quot;Place open brace on new line for control blocks&quot;

How it is made for JavaScript. Thank you.

I found mistake. Please press Ctrl+K, Ctrl+D in .glsl file. You will see new line for every pressing.]]></description>
		<content:encoded><![CDATA[<p>It is very nice tool. I use shader files now (not in scripts tags)</p>
<p>Please, add two checkboxes to Options -&gt; Formatting -&gt; &#8220;New Lines&#8221;:<br />
- &#8220;Place open brace on new line for functions and structures&#8221;<br />
- &#8220;Place open brace on new line for control blocks&#8221;</p>
<p>How it is made for JavaScript. Thank you.</p>
<p>I found mistake. Please press Ctrl+K, Ctrl+D in .glsl file. You will see new line for every pressing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
