This directory contains example .cldt files to demonstrate various features of the CLDT Editor extension.
- simple-test.cldt - Basic Cloudinary URL example
- simple-url.cldt - Simple transformation URL
- url.cldt - Standard URL format
- commented-url.cldt - URL with comments
- formatted-with-spacing.cldt - Example with proper spacing
- url-formatted.cldt - Formatted URL structure
- url-with-indentation.cldt - Indented URL format
- complex-url.cldt - Complex transformation
- complex-url-formatted.cldt - Complex transformation with formatting
- variable-syntax-test.cldt - Tests variable syntax highlighting
- test-highlighting.cldt - Tests syntax highlighting
- test-hover-anchors.cldt - Tests hover provider functionality
- if-else-test.cldt - Tests conditional logic (if/else)
- multiline-text-test.cldt - Tests multiline text handling
File: float-dimension-test.cldt
Purpose: Demonstrates float dimension detection in the hints system
Content:
https://res.cloudinary.com/demo/image/upload/w_500.5,h_300.75,c_fill/sample.jpg
Expected Hints:
⚠️ Line 2: Width parameter 'w_500.5' contains a decimal point. Use an integer value instead (e.g., w_501).⚠️ Line 2: Height parameter 'h_300.75' contains a decimal point. Use an integer value instead (e.g., h_301).
File: invalid-variable-test.cldt
Purpose: Demonstrates invalid variable assignment detection from Cloudinary errors
Content:
$titlerand_!hellllo,
Expected Hints:
- ❌ Line 3: Invalid assignment to variable '$titlerand' with value '!hellllo'. Check the variable syntax and value format.
File: scale-no-dimensions-test.cldt
Purpose: Demonstrates info hint for scale without dimensions
Content:
https://res.cloudinary.com/demo/image/upload/c_scale,q_auto/sample.jpg
Expected Hints:
- ℹ️ Using cscale without width or height parameter. Consider adding w or h_ to specify dimensions.
File: correct-dimensions-test.cldt
Purpose: Control test - no hints should appear
Content:
https://res.cloudinary.com/demo/image/upload/w_500,h_300,c_fill/sample.jpg
Expected Hints: None (hints area should remain hidden)
- Open any of the hints test files
- Run the command: "CLDT: Show Preview" (or use the keyboard shortcut)
- Observe the hints area below the header in the preview window
- The hints area will smoothly expand if any issues are detected
- Each hint shows:
- An icon (
⚠️ warning, ❌ error, ℹ️ info) - A clear description of the issue
- Suggestions for how to fix it
- An icon (
- Real-time feedback on common Cloudinary URL issues
- Contextual help with specific suggestions
- Learning tool to understand Cloudinary best practices
- Error prevention before deploying to production
- Visual indicators for quick problem identification
- Open a
.cldtfile in VS Code - The syntax highlighting will automatically activate
- Use hover to see parameter descriptions
- Run "CLDT: Show Preview" to see the image preview
- Use formatting commands to clean up the URL structure
- Check the hints area for any warnings or suggestions
Feel free to create your own .cldt files to test different Cloudinary transformations. The extension will automatically provide:
- Syntax highlighting
- Hover information
- Code completion
- Formatting
- Live preview with hints
Refer to the main documentation files:
README.md- Main documentationHINTS.md- Detailed hints feature documentationFORMATTER.md- Formatting feature documentationFEATURES-UPDATE.md- Recent feature updates