Text Editor

文本编辑器提供了一种方便的方法来构建来自各种数据源的文本字符串(包括正则表达式),例如属性,参数和常量,其中结果直接在参数内使用。

The functions and data sources that are available depend on the transformer from which the text editor is opened, and the context of the individual workspace. These functions and data sources may include:

在这个例子中,值的值ParkNamefeature attribute is converted to upper case:

插入扩展的ASCII字符

The Advanced editor supports inserting extended ASCII printing characters and non-printing control characters. On Windows, these characters are inserted by holding the Alt key while typing the corresponding character code on the numeric keypad (usually on the right side of the keyboard; do not type the numbers that appear on the main part of the keyboard). On Macintosh, extended ASCII characters are inserted with a keystroke combination that includes the Opt key, or the Opt and Shift keys together.

有用的链接:

Options Menu

Option 描述
Syntax Highlighting

Sets the highlighting scheme to the given language. If FME syntax highlighting is selected, then:

  • 有效属性名称为黄色
  • functions are shown in blue
  • valid parameters in purple
  • invalid parameters/attributes are shown in red.
Select Font Opens the font dialog and changes the editor font.
Find 在文本中查找下一个字符串的实例。
Find Next Finds the next instance of the string that was specified previously in the Find dialog.
代替 代替s the specified string with another string.代替replaces only the text that is highlighted dark blue.代替All替换突出显示的文本的所有实例。
显示行号码 选中时,显示文本左侧的行号。

显示支撑匹配

仅当语法突出显示指定Python等编程语言时,此选项才有效。

When selected, shows brace matching.

匹配括号在文本的左侧允许您折叠支撑部分,因此只有第一行处于视野中。

显示空间/选项卡 When selected, shows a different character in the text for spaces, newlines and tabs.
单词包装 当选择,继续过去的包装线end of screen onto the next line. Otherwise, it keeps the line intact and shows a horizontal scroll bar.
切换到基本 切换到基本文本编辑器。仅在使用带有StringConcaTenator变压器的文本编辑器时可用。
Default To Advanced Editor

设置Workbench始终显示高级编辑器。仅在使用带有StringConcaTenator变压器的文本编辑器时可用。

You can also set this option from the Tools >FME选项menu.