You are here: Reference > Rule types > Text Files > Text File rules - Completing the Main tab

  Text File rules
Completing the Main tab

  1. About 
  2. New 
  3. Main 
  4. History 
  5. More... 

Complete this tab to describe and create or upload the text file.

Field

Description

Relative Path

Optional. Enter a subdirectory of the Web server directory that is identified by the first key part of the instance. For style sheets, enter css.

Compact JS

This field appears only when the file type is JS. Select to minify the JavaScript source code — making it require less workstation memory and shorter to transmit — for best performance. Clear to simplify JavaScript debugging.

File Source

Enter the contents of the rule. The text can contain JavaScript source code, HTML, style definitions, or other values.

Click(magnifying glass) to open a text editor such as Notepad. If the file has a CSS, HTM, or JS file type, the editor that opens depends on Windows file associations on your workstation. To view or change this setting:

  1. Start the Windows Explorer.
  2. Select Tools > Folders Options
  3. Click the File Types tab
  4. Access the Edit operation for a file type.
Upload File

Click to upload a text file on your workstation into this rule. Save the rule form after the upload completes.

Download File

Click to extract the text from this rule into a temporary text file on your workstation, so you can edit or examine it.

Check JS Syntax

This button appears when the third key part of the rule is js.

If you have a JavaScript editor and debugger registered on your workstation as the editor for JavaScript files, click to open the editor and check JavaScript syntax.

Show JS DOC

Reserved; do not use.

About Text File rules