Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

사용자정의 스타일을 이용해서 자주 사용되는 문단, 런 스타일을 등록해두시면 더 빠르고 편리한 편집이 가능합니다.

사용자정의 문단스타일

사용자정의 문단스타일을 사용하려면 아래와 같이 환경설정을 해야 합니다

Custom Paragraph Styles

To use custom paragraph styles, you need to set the following preferences.

Code Block
languagejs
themeEmacs
titlesynapeditor.config.js
{
	'editor.customStyle.paragraph': [
    {
      'name': 'Gray',
      'style': {
        'color': {
          'r': 170,
          'g': 170,
          'b': 170
        }
      }
    }
  ],
}
  • 사용자정의 문단스타일 적용결과If the parameters above are used, the Editor will look like this:

사용자정의 런스타일

사용자정의 런스타일은 아래와 같이 설정합니다


Custom Run Styles

To use custom run styles, you need to set the following preferences.

Code Block
languagejs
themeEmacs
titlesynapeditor.config.js
{
	'editor.customStyle.textRun': [
    {
      'name': 'BigRed',
      'style': {
        'fontSize': 32,
        'color': {
          'r': 255,
          'g': 0,
          'b': 0
        }
      }
    },
    {
      'name': 'SmallBlue',
      'style': {
        'fontSize': 16,
        'color': {
          'r': 0,
          'g': 0,
          'b': 255
        }
      }
    }
  ]
}
  • 사용자정의 런스타일 설정 결과If the parameters above are used, the Editor will look like this: