- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just noticed VALUE attribute and MOVE_ALLOC intrinsic procedure do not get highlighted in Visual Studio file editor; I presume there are also other such items that are not getting highlighted?
So is it possible for Intel Fortran integration with Visual Studio to be improved to allow syntax highlighting for the full list of keywords, etc. in the current Fortran standard?
Periodically a paper is published in ACM Fortran Forum (Gorelik is usually the author) listing the "Statements, data types and intrinsic procedures in the Fortran standards." It may be a good starting point for the Intel Fortran team team to check.
By the way, for forum posts involving code snippets, how does the highlighting work? Is that dependent on one's individual browser or something on the Intel server side? In the code snippets too, one can notice certain Fortran standard keywords not getting highlighted.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As you intimate I have noticed there are quite a number of keywords that do not highlight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Keywords also get highlighted when contextually they shouldn't be, for example when one is used as a variable name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sgeard@cad-schroer.co.uk wrote:
Keywords also get highlighted when contextually they shouldn't be, for example when one is used as a variable name.
I personally would prefer if keywords always get highlighted; I never want to use keywords as variable names or give the procedures the same name as intrinsic ones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In an ideal world I'd agree with you, but I'm usually working on code that started life 25 years ago before many of these keywords were created and so find it annoying when variables like 'in' and 'result' get highlighted.
[fortran]
integer :: in, result, value, index
[/fortran]
The above highlighting is different from the same declaration in Visual Studio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Actually the highlighting in #5 whilst I agree it might irritate it does at least warn the uninitiated that they are moving to the dark side of the force, i.e. misappropriating language keywords.......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will let the VS integration developers know that they need to update their list.
This forum uses an open source code highlighter tool which is not very good about Fortran. I'll see what I can do to get the keyword list improved, at least.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My free text editor can highlight .true. and .false. much better than Intel.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page