Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29487 Discussions

How can I highlight a Fortran source code in the Editor window in idb (Linux GUI)?

woshiwuxin
Novice
1,322 Views

Hi, everyone. I want to highlight a Fortran source code in the Editor window in GUI idb for Linux. Anyone know how to do it?

Thanks in advance!

0 Kudos
11 Replies
Kevin_D_Intel
Employee
1,322 Views

Try placing the cursor at the text starting point, click and hold the left-mouse button andthen drag to highlight the desired source. Once the source is highlighted, release the left-mouse button and click the right-mouse button once for available actions.

0 Kudos
woshiwuxin
Novice
1,322 Views
Hi, Kevin. I followed your instructions. However, there's no option for highlight the source code in the pop-up menu.
0 Kudos
Kevin_D_Intel
Employee
1,322 Views

Perhaps I don't understand what you are looking at. My instructions referred to the source file window pane shown in the screen snap below. I highlighted some source code and clicked the right mouse button once to display the actions available.

Is this the pop-up menu shown with the Copy option the pop-up you are referring to?

There is no option to highlight text. For example, when the focus is the source code view, the Edit button does not offer a 'Select All' type option to highlight all the text.

Does this help?

0 Kudos
woshiwuxin
Novice
1,322 Views

Oh, Kevin. English is not my native tongue. Maybe there is a misunderstanding on the word - highlight.

Your point is that highlight is "selection", however, my point is that highlight is "to display the source code with syntax highlight".

I read the idb manual and google it, but I finally found no clue to display the source code with syntax highlight.

0 Kudos
Kevin_D_Intel
Employee
1,322 Views

Sorry for the confusion. Thanks for clarifying. So, you're interested in seeing Fortran keywords highlighted in the source view. I don't believe that capability exists. This doesn't exist when displaying C/C++ source code either.

I'll have to inquire further with the Debugger team.

0 Kudos
woshiwuxin
Novice
1,322 Views

Hi, Kevin. idb does support keywords highlight in C/C++ source code. See the screen snaps of the following link.

http://software.intel.com/en-us/articles/idb-linux/

So I do think it's necessary to add this feature for the Fortran source code.

0 Kudos
Kevin_D_Intel
Employee
1,322 Views

Interesting. Have you tried C/C++ code on your system?

I'm not seeing highlights in C/C++but my vncviewer I'm usingmay be hampering this. I'll have to try some other tests. I'm waiting to hear from the IDB Developers about whether this is available for Fortran.

I'll let you know what I hear.

0 Kudos
woshiwuxin
Novice
1,322 Views

I have tried a simple "hello!" program in C. It works. Take a look at the screenshot.

0 Kudos
Kevin_D_Intel
Employee
1,322 Views

Thank you for the confirmation. I too now see the highlights for C/C++ after upgrading my vncsever/vncviewer.

Developmentconfirmed this is default (non-configurable) feature in IDB enabled for C/C++ only at present. Fortran keyword highlighting is planned for the next major release later this year. The feature may become available earlier during the Beta program for this next release, andDevelopment may also investigate possibly providing the feature earlier in the current 11.1 release. I'll update again if I learn more.

0 Kudos
woshiwuxin
Novice
1,322 Views

I'm really glad to hear that good news!

0 Kudos
woshiwuxin
Novice
1,322 Views
I'm glad that the latest Linux GUI idb can show syntax highlight for Fortran source code. Although only comments and characters could be displayed in color, it's better than never highlighted at all. :)
It's really worthy of my cost!
0 Kudos
Reply