User:Max34/VDCEditor: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 59: Line 59:
| style="font-size:2em; color:white; padding-bottom:5px; solid #4f4f4f;"| v0.1.3 <span style="border:1px solid #238636; border-radius:25px; color:#3fb950; font-size:12px; padding:5px; position: relative; top: -5px;">Latest</span>
| style="font-size:2em; color:white; padding-bottom:5px; solid #4f4f4f;"| v0.1.3 <span style="border:1px solid #238636; border-radius:25px; color:#3fb950; font-size:12px; padding:5px; position: relative; top: -5px;">Latest</span>
|-
|-
| style="padding-top:5px; border-bottom:1px solid #4f4f4f;" | Pushing a bit more polished editor, more features will be coming in the future.
| style="padding-top:5px; border-bottom:1px solid #4f4f4f;" | Pushing an early and a bit more polished editor, more features will be coming in the future.
* Added an error window, this is an important change, since any break in the editor may not save any changes
* Added an error window, this is an important change, since any break in the editor may not save any changes
* Added search mode
* Added search mode

Revision as of 09:51, 19 September 2025

Icon-VDCEditor.png VDCEditor is a browser extension that transforms the standard edit field in MediaWiki-based projects into a feature-rich code editor, complete with syntax highlighting, line numbering, and additional enhancements.

Originally developed for the Valve Developer Community, it can be used across any MediaWiki-based platform.

Usage

Navigate to any editable page.

Click the Edit tab to launch the enhanced editor.

Installation Instructions

Chromium-Based Browsers
  1. Download the .zip archive from the link below.
  2. Extract the archive. You should have a VDCEditor folder containing all extension files.
  3. Place the folder anywhere on your computer.
  4. Open your browser and navigate to chrome://extensions/.
  5. Enable Developer Mode.
  6. Click Load unpacked extension and select the VDCEditor folder.
  7. The extension should now appear as an unpacked extension in your browser.


Firefox
  1. Download the .zip archive from the link below.
  2. Save the archive to any location.
  3. Open Firefox and go to about:config.
  4. Accept the warning and search for xpinstall.signatures.required.
  5. Set this preference to false.
  6. Open your add-ons manager (about:addons), click the gear icon, and select Install Add-on from File.
  7. Choose the previously downloaded archive.
  8. The extension should now appear, although Firefox will indicate it is unverified.
Note.pngNote:If the extension doesn't start automatically, click the extensions button in your browser, find VDCEditor, right-click it, and select Always allow on developer.valvesoftware.com.

Download

This extension is still under development and may be unstable. By installing it, you agree that the creator is not responsible for any shortcomings. Installation of the unpacked extension is required because some browsers block extensions not installed from their store.


v0.2
In development.
Download: TBD


v0.1.3 Latest
Pushing an early and a bit more polished editor, more features will be coming in the future.
  • Added an error window, this is an important change, since any break in the editor may not save any changes
  • Added search mode
  • Added experimental features; Such as:
    • Live summary preview
    • Wiki table styling
    • string counter (only on \/strings pages)
    • Open a new tab with template name (e.g clicking the "Bug"; {{Bug|...}})
    • Show invalid HTML tags (Check for any unclosed html tags)
  • Added a Show Hidden Characters button
  • Added "markup" style (stylizes #, ;, :, * on the start of the line)
  • Added a UI to add UDT (User Defined Templates)
    • Renamed templates.js to templates_json.js to only have built-in magic words
  • Removed Right to Left mode
    • Buggy, breaks some features, and events don't get the mode
  • Fixed HTML tags styling
  • Fully supported template nesting and param nesting
  • Seperated translations to their repsective json files, see src/locales/locales.json src/locales/locales.json on how to add a language.
Download:


v0.1.2
A temporary editor developed by N0one, until v0.2 is released.
  • Fixed color of the editor after the site upgrade
  • Fixed some UI elements
  • Added support for RTL
  • Added a button for each type of wiki tag ([[Link]], {{ACategory}}, '''Apostrophes''')
  • Added a special button that changes links into their template one, e.g. [[Category:...]] -> {{ACategory|...}} (idea from Alternative Languages, the regex area)
  • Added a custom dropdown area for stylizing each wiki tag color and a reset button to reset every color
  • Added a custom dropdown area for stylizing the Editor
  • Added highlighting to &#999; elements
  • Added Translations for the VDCEditor.
  • Added an auto scroll on a new line
  • Added a button that enables/disables matching brackets for highlighting same as selection
  • Added a custom file for users to customize template coloring Usage
  • Fully supported stylized templates (Not fully supported by template pages)
Note.pngNote:It highlights templates, which can be very helpful for spotting unclosed ones, if a template isn't properly closed, nothing after it will be highlighted.
  • Lots of optimizations
Download:


v0.1
  • Initial test release.
Download: