In computer science, the syntax of a programming language is the set of rules that define the combinations of symbols that are considered to be correctly structured programs in that language.
3
votes
0answers
96 views
gluDisk() function opengl
I am trying to create a function in my program that draws disk. I have a .h file called drawShape where I have all my drawing functions there. I am trying to add drawDisk to it, as seen below;howerver ...
3
votes
0answers
157 views
Why doesn't $hash.key syntax work inside the ExpandString method?
The following Powershell script demonstrates the issue:
$hash = @{'a' = 1; 'b' = 2}
Write-Host $hash['a'] # => 1
Write-Host $hash.a # => 1
# Two ways of printing using quoted ...
2
votes
0answers
142 views
Syntax Highlighting of an Embedded Language in Visual Studio 2012
I'm using C# and Visual Studio 2012 to implement syntax highlighting of a language embedded in html (much like ASP code inside <% %>). So far, I've found out that I need to use IProjectionBuffer ...
2
votes
0answers
80 views
What is an argument name specification (for)?
Resharper proposed me to add argument name specifications changing the method call from:
MyEvent(sender, e);
to
MyEvent(sender: sender, e: e);
Have not ever seen this syntax before and ...
2
votes
0answers
190 views
Create array with empty string using %w[]
Using %W I can use %W[a #{} b #{} c], also I can concatenate arrays, but is it possible to create array ['a', '', 'b', '', 'c'] using just %w[]?
2
votes
0answers
74 views
Issue with concealed symbols
I have &concealcursor=nc and this works fine except one thing: say, I have a following line: "foo bar ~*baz*~ foo", and the symbols ~ and * are concealed. I move cursor through this line, and ...
2
votes
0answers
240 views
vim: Including blank lines following region in fold
I'm currently attempting to improve the folding behavior of Matlab files in Vim. I have a syntax file generated and the folding behaves as I want with one exception. Say I have the following code:
...
2
votes
0answers
250 views
In the Xcode 4 - is there any way to make “Generic” Syntax Coloring to be the default?
Xcode 4 uses "None" syntax coloring scheme as the default for unknown file types [why?!?]. Is there any way to change this and make "Generic" coloring scheme to be the default one?
I couldn't find ...
1
vote
0answers
68 views
Why can some blocks be replaced by semicolons while others can't?
As the title says, I am wondering why some blocks in C# can be replaced by semicolons while others can't.
Example:
// These are valid
while(anything);
using(var x = new Stuff());
for(var i = 0; a ...
1
vote
0answers
47 views
C++ and C++/CLI cooperation
Can you remind me of how to make linking between C++ and C++/CLI?
I have it like this:
"hashtable" is a native code file with header where i do sample BIG RAM allocation, it compiles ok.
"BPSW" is ...
1
vote
0answers
40 views
R and data.table package syntax in eclipse
I'am using Eclipse and StatET to script in R.
I am using the great data.table package which introduce the syntax :=
For eclipse it is a syntax error but it is not the case in the context of this ...
1
vote
0answers
43 views
Syntax error with SOLR join queries
We have a multi-core SOLR setup and each of the cores have different schemas.
Video core indexes video metadata
Entity core indexes metadata of entities extracted from video title/description
Vemap ...
1
vote
0answers
82 views
Vim syntax high-lighting for C++11 that does not mess up other highlighting. E.g., class/namespace scoping
I am aware of this script: http://www.vim.org/scripts/script.php?script_id=3797. It has been suggested a few times, and other questions regarding C++11 syntax for Vim have been shut down due to ...
1
vote
0answers
60 views
How do i just rotate a image in Javascript?
I am working on a program in Javascript while i tried to rotate my image i have draw. I tried to search on google to find my answear but all i got was how to rotate the whole canvas. What i am ...
1
vote
0answers
33 views
Related Products Shopify Liquid
I'm trying to determine the correct Shopify Liquid syntax for outputting a list of products that match the same tag as the current product.
This is to appear in a "Related Products" box on the ...