Highlighted
Absent Member.
Absent Member.
4376 views

Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

When I use Visual COBOL to open tutorial projects, I saw strikethrough fonts (cross line fonts) occasionally appearing somewhere. Both on Windows and REDHAT:

on REDHAT:

I really want to know how to eliminate those annoying appearance.
Really appreciated for any hints.

0 Likes
2 Solutions

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

Hello,

The data items with strikethrough are those that are not referenced or used in the program. I'm not sure if it's possible to disable it.

Cheers,

–Ғɑɳօ

View solution in original post

0 Likes
Highlighted
Visitor.

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

You can change this in the Eclipse settings. From the Eclipse menu, navigate to:

Window > Preferences > Micro Focus > COBOL > Editor > Syntax Coloring

In the "Elements" box you will find an entry for Unreferenced Items. Select it and you can adjust the color and style that will be applied.

View solution in original post

0 Likes
13 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

Hello,

The data items with strikethrough are those that are not referenced or used in the program. I'm not sure if it's possible to disable it.

Cheers,

–Ғɑɳօ

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

YES. It's possible todisable it. !!!

Pedro Juan Montero Bernales

PJM Informatica Soluciones Globales

Santiago - Chile

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

Instruction please?

Thank you, Pedro

-Jack

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

Thank you,  MF_Fano.

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

community.microfocus.com/.../543.eclipse-editor-features-for-eclipse.aspx

Pedro Juan Montero Bernales

PJM Informatica Soluciones Globales

Santiago - Chile

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

I saw this:

6.       You will notice that some data items in data division are crossed out. That is because they are not referenced directly in procedure division. Be careful though. Don't be tempted to remove these data items from your code without being sure. If the data item is inside a copy file, then other program may be using them.

But it did not tell me how to disable it.  -- Maybe I should just leave there as it is.

Anyway , thank you for the hyperlink.

0 Likes
Highlighted
Visitor.

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

You can change this in the Eclipse settings. From the Eclipse menu, navigate to:

Window > Preferences > Micro Focus > COBOL > Editor > Syntax Coloring

In the "Elements" box you will find an entry for Unreferenced Items. Select it and you can adjust the color and style that will be applied.

View solution in original post

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

Hi Jack

Chuck's answer is perfect. Just in case a video would help, you can check the following link for some basics about the Eclipse Editor:

Visual COBOL for Eclipse in a Nutshell:Editor Basics

At about 3:35, the video shows a shortcut to get to Editor preferences, and at about 4:20, there is discussion of choosing and customizing the colorization options used in the Visual COBOL for Eclipse editor.

Blair McDonald

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

Corrected video link in previous post

Blair McDonald

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

Thank you, Chuck.   That is exactly what I was looking for.  Perfect answer!

I unchecked strike-through font , instead,  using dark yellow color. it looks much better and consistent!

Thank you again,

-Jack

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Strikethrough (Cross Line) font in Visual COBOL

Jump to solution

Thank you Blair for the confirmation.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.