Plex Host Docs

Editing Files

The built-in file editor uses Monaco (the same editor as VS Code) to provide a powerful editing experience with syntax highlighting, search, and more.

Opening the Editor

  1. Navigate to the file you want to edit
  2. Click on the filename
  3. The editor opens with the file content

Editor Features

Syntax Highlighting

The editor automatically detects file types and applies syntax highlighting:

  • YAML/YML - Configuration files
  • JSON - Data files, configurations
  • Properties - Java properties files
  • JavaScript - Scripts
  • Shell - Bash scripts
  • Plain Text - Other text files

Line Numbers

Line numbers are displayed on the left side, making it easy to reference specific lines when troubleshooting.

Code Folding

Collapse sections of code by clicking the arrows next to line numbers. Useful for large configuration files.

Editing Tips

Find and Replace

  • Find: Ctrl+F (Windows) or Cmd+F (Mac)
  • Replace: Ctrl+H (Windows) or Cmd+H (Mac)

Use regular expressions for advanced search patterns by clicking the regex button.

Go to Line

Press Ctrl+G (Windows) or Cmd+G (Mac) to jump to a specific line number.

Multiple Cursors

Hold Alt and click to add multiple cursors. Type to edit multiple locations at once.

Undo and Redo

  • Undo: Ctrl+Z (Windows) or Cmd+Z (Mac)
  • Redo: Ctrl+Shift+Z (Windows) or Cmd+Shift+Z (Mac)

Saving Changes

Save

Click the Save button or press Ctrl+S (Windows) / Cmd+S (Mac).

Remember to restart your server after editing configuration files for changes to take effect.

Save and Close

Click Save & Close to save and return to the file browser.

Discard Changes

Click Cancel or close the editor tab to discard unsaved changes. You'll be prompted to confirm.

Common Files to Edit

Server Properties

The main server configuration file. Common settings:

# Server name shown in server list
motd=Welcome to My Server

# Maximum players allowed
max-players=20

# Server port
server-port=25565

# Game mode (survival, creative, adventure)
gamemode=survival

YAML Configuration

Plugin and mod configs use YAML format:

# Example plugin config
settings:
  debug: false
  language: en

features:
  enabled: true
  options:
    - feature1
    - feature2

YAML is sensitive to indentation. Use spaces, not tabs, and maintain consistent spacing.

JSON Files

Data files like whitelists and bans use JSON:

[
  {
    "uuid": "player-uuid-here",
    "name": "PlayerName"
  }
]

JSON requires strict formatting. Missing commas or brackets will cause errors.

Editor Settings

Access editor settings from the gear icon:

  • Font Size - Adjust text size
  • Theme - Light or dark mode
  • Word Wrap - Wrap long lines
  • Tab Size - Spaces per tab

Read-Only Mode

If you have Read permission only, the editor opens in read-only mode. You can view files but cannot make changes.

File Size Limits

  • Files up to 10 MB can be edited in the browser
  • Larger files should be downloaded, edited locally, and re-uploaded

Best Practices

Always Backup First

Before editing important files:

  1. Create a backup
  2. Or copy the file to another location

Stop the Server

For critical configuration files:

  1. Stop the server
  2. Make your changes
  3. Save the file
  4. Start the server

This prevents conflicts with files being read while you edit.

Validate Syntax

  • YAML: Check indentation carefully
  • JSON: Ensure all brackets match
  • Properties: Use correct key=value format

Test Changes

After saving:

  1. Restart the server
  2. Check the console for errors
  3. Verify the changes work as expected

Troubleshooting

Editor Won't Load

  1. Try a different browser
  2. Clear browser cache
  3. Check if the file is very large

Changes Not Taking Effect

  1. Did you save the file?
  2. Did you restart the server?
  3. Check for syntax errors in the console

Syntax Errors

Common causes:

  • YAML: Wrong indentation, missing colons
  • JSON: Missing quotes, commas, or brackets
  • Properties: Spaces around equals signs

Check your game's documentation for correct syntax.

File Locked

If you can't edit a file:

  1. Check your permission level
  2. Stop the server (file may be in use)
  3. Ensure the file isn't marked as read-only

On this page