Can't put an Pipe in the Editor Problem

Answered

I try to type in a Pipe in my Code an it's alway changed to / instead how can i change that?

1
13 comments
Avatar
Permanently deleted user

No, I am aktual Working on an Windows 10

I found out that his happen only to certain file types maybe it is because of the intellij-Haskell plugin? as soon as a file is markes as a haskell file all pipes are changed... When I mark the file as plain text i can use pipes

0

>as soon as a file is markes as a haskell file all pipes are changed...

How are they changed? Is it possible to have a small screencast or a screenshots describing the issue?

0
Avatar
Permanently deleted user

0
Avatar
Permanently deleted user

To give you more information i tried different keyboard layouts:

German Swiss, English US

IDE Version:

2019.2.3

Filetyp:

.hs

And now when i mark the file as plain text:

0

So it looks like the character is in fact the same but just displays differently when you enable Haskell plugin? Does code work as expected?

0
Avatar
Permanently deleted user

I can run the code it is just a display bug i want to fix

0

It could be that the plugin either re-define text attributes for this particular language symbol type: you can check it in code style for Haskell: Settings/Preferences | Editor | Code Style or the Color Scheme was customized this way for this type of symbols in language.

Try also changing Editor font in Settings/Preferences | Editor | Font.

0
Avatar
Permanently deleted user

In code style i only see this:

I see that even there in the definitions it is displayed wrong:

should be a pipe 

0

@Fabian Brunner when you execute the code - doe it work as expected? What do you see if set any other Editor font?

To verify that this is really a pipe char - open the file in another text editor and check the character and it'c char code.

0

@...  This is still exactly reproducible. I was able to resolve it by changing The Haskell Color Scheme to Dracula under Settings -> Editor -> Color Scheme..Every other theme displays it incorrectly 

0
Avatar
Permanently deleted user

Which one of the available Haskell support plugins do you use?

0
Avatar
Permanently deleted user

The pipe looks like a slash because it is italicized.  To fix:

Settings -> Editor -> Color Scheme -> Haskell -> Reserved Symbol. Uncheck Italic. Apply.

 

0

Please sign in to leave a comment.