Skip to content

Commit

Permalink
turn on wordwrap for markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed May 8, 2023
1 parent f3dd60e commit b75b643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CommonUI/src/Components/CodeEditor/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const CodeEditor: FunctionComponent<ComponentProps> = (

<Editor
defaultLanguage={props.type}
height="25vh"
height="30vh"
value={value}
onChange={(code: string | undefined) => {
if (code === undefined) {
Expand Down Expand Up @@ -166,7 +166,7 @@ const CodeEditor: FunctionComponent<ComponentProps> = (
suggestOnTriggerCharacters: true,
wordBasedSuggestions: true,
wordSeparators: '~!@#$%^&*()-=+[{]}|;:\'",.<>/?',
wordWrap: 'off',
wordWrap: props.type === CodeType.Markdown ? 'on' : 'off',
wordWrapBreakAfterCharacters: '\t})]?|&,;',
wordWrapBreakBeforeCharacters: '{([+',
wordWrapColumn: 80,
Expand Down

0 comments on commit b75b643

Please sign in to comment.