Code Online
Visual block-based web editor to create, manage and export professional PHP/HTML sites โ with a full authentication system, subscription plans and account management.
Introduction
Code Online is a desktop web editor built on Electron. It lets you visually build web pages by drag & dropping blocks, edit source code live, generate PHP backend code, and now features a complete authentication system tied to your online-corps.net account.
Core Features
System Requirements
- Windows 10/11 (or any Electron-compatible OS)
- Minimum 4 GB RAM recommended
- 500 MB available disk space
- Internet connection for authentication
- Local PHP server: WampServer or XAMPP
Installation & Setup
Follow these steps to set up Code Online and your local development environment.
Register at online-corps.net/signup/ to get your credentials. A Free account gives immediate access.
Download WampServer (recommended for Windows) or XAMPP. Start Apache before using Code Online.
Open the app. The sign-in screen appears automatically. Enter your username or email and password.
Go to Settings โ๏ธ โ click Browseโฆ โ select your server folder.
Return to the home screen, click + New Project and give it a name. It appears immediately in your local server.
Default Paths
- WampServer :
C:\wamp64\www - XAMPP :
C:\xampp\htdocs
Sign In
Code Online v3.0 introduces a full authentication system. The app verifies your online-corps.net account on every launch and keeps a secure local JWT session.
Authentication Flow
If no valid session is found, the login screen is shown. If the API is unreachable (offline), the cached local session is accepted.
Login Options
Session Storage
- JWT token saved in
%AppData%\CodeOnline\session.json - Token valid for 30 days โ automatic renewal on verify
- Session refreshed on every app launch with fresh subscription data
- Sign out clears the session file and redirects to the login screen
API Endpoints
POSThttps://online-corps.net/api/auth/
Body: { username: "...", password: "..." }
or: { email: "...", password: "..." }
Returns: { token, user: { username, firstName, role, abonnement, expiration_abonnement, ... } }
POSThttps://online-corps.net/api/auth/?action=verify
Body: { token: "..." }
Returns: { user: { ... }, subscription: { plan, name, price, version, days_left, ... } }
Account Page
The Account tab in the sidebar gives you a complete view of your profile and subscription, always showing live data fetched from the API.
Profile Information
- Avatar โ loaded from online-corps.net profile (fallback to initials)
- Full name, username, title, company
- Email & Pro Email โ both displayed if set
- Role badge โ User shown for User accounts
Subscription Block
- Current plan badge with color coding (Free / Pro / Premium)
- Expiration date with countdown โ color turns orange under 30 days, red under 7
- Lifetime โ shown for permanent subscriptions
- Upgrade banner shown automatically for Free accounts
Quick Actions
- Edit profile โ opens online-corps.net/account in browser
- Manage on website โ same destination
- Change password โ opens the forgot-password page
- Sign out โ clears session, returns to login screen
Subscription Plans
Code Online offers three plans. Plan data is verified in real time against your account on online-corps.net every time the app launches.
Level Up Button
Free users see a Level Up button below the Docs entry in the sidebar. Clicking it opens the pricing modal with your current plan highlighted, live subscription data fetched from the API, and a direct link to online-corps.net/subscription/ to upgrade.
Plan Expiration
- If a paid plan expires, it automatically downgrades to Free
- The API handles expiry detection server-side โ client always gets the correct active plan
- Lifetime subscriptions use the date
3000-01-01and display Lifetime โ
Project Management
The Hub screen centralizes all your projects. Each project is a folder in your local
server containing a Code_Online.config.
Create a Project
- Click + New Project in the Projects tab
- Fill in the name, description, keywords and optionally a logo
- The project is created with a pre-filled
index.phpand configured Open Graph meta tags - The project card appears immediately in the grid
Open a Project
Click on a project card to open the Loader which lists the project files, then click Open in Editor. The last opened time is updated automatically.
Delete a Project
Access project details (โฎ icon or secondary click) and click Delete. This action permanently deletes the folder and its contents.
Client-SiteName). A custom logo appears on the project card if you add a favicon during creation.
Import an Existing Project
You can import any existing web project into Code Online by manually adding a config file.
Code_Online.config File
{
"name": "MyProject",
"description": "Project description",
"createdAt": "2025-01-01T00:00:00.000Z",
"lastOpenedAt": null,
"path": "C:\\wamp64\\www\\MyProject",
"favicon": "assets/img/favicon.png"
}
Visual Editor
The editor has 3 real-time switchable views: Visual, Code and Preview. Changes in one view are automatically reflected in the others.
File Explorer
- Single click โ select a file
- Double click โ open the file in the editor
- Right-click on file โ Open ยท Rename ยท Copy path ยท Delete
- Right-click on folder โ New file ยท PHP ยท Subfolder ยท Rename ยท Delete
- Right-click on empty area โ New file ยท PHP ยท Folder
โ indicator in the topbar signals unsaved changes.47 Available Blocks
Blocks are organized into 3 categories: Headers, Body and Footers. Click or drag a block from the right panel to add it to the canvas.
Block Customization
The customization panel opens via the โ๏ธ button on each block or via right-click โ Customizeโฆ. It has 3 tabs.
h1โh6, p, a,
buttonโฆ in the block. Click โ inline field. Enter to confirm, Escape to
cancel.
Available Theme Palettes
Code Editor
The built-in code editor supports HTML, PHP, CSS, JS, JSON, XML, SVG, TXT and Markdown.
- Line numbers synchronized with scroll
- Format (Alt+F) โ automatic HTML indentation
- Copy โ copies code to clipboard
- Tab โ inserts 2 spaces
- Dynamic language badge at the top left
- Real-time sync to the canvas (debounce 600ms)
Backend Builder
The Backend Builder (CtrlP or ๐งฑ Backend button) is a visual tool for generating PHP backend code by assembling bricks. 4-column layout: palette / canvas / properties / generated code.
21 Available PHP Bricks
Pre-built PHP Pages
The ๐ PHP Pages button in the Backend Builder topbar gives access to 7 complete, styled PHP pages that are immediately functional.
mail().Save to Project
The generated code can be saved directly into your Electron project, in an organized
structure under assets/back-end/.
StructureMyProject/
assets/
back-end/
login/
login.php โ saved here
Click Choose in the topbar โ select an existing PHP file or create a new one.
Click bricks in the palette and configure their properties.
Click ๐พ Save to file. Folders are created automatically. The file explorer refreshes and the file opens in the editor.
Settings
Project Folder
- Click Browseโฆ and select your server directory
- Configuration saved in
%AppData%\CodeOnline\config.json - You can change this path at any time without data loss
Supported Languages
- ๐ฌ๐ง English
- ๐ซ๐ท Franรงais
- ๐ฏ๐ต ๆฅๆฌ่ช (Japanese)
%AppData%\CodeOnline\session.json. Changing the project folder does not affect your login state.
Keyboard Shortcuts
All shortcuts work within the editor window.
Editor โ Global
| Shortcut | Action |
|---|---|
| Ctrl + S | Save the current file |
| Ctrl + 1 | Switch to Visual view |
| Ctrl + 2 | Switch to Code view |
| Ctrl + 3 | Switch to Preview view |
| Ctrl + B | Open the block library |
| Ctrl + P | Open the Backend Builder |
| Alt + F | Format HTML code |
| Escape | Close active modal / overlay |
File Explorer
| Action | Result |
|---|---|
| Single click | Select the file |
| Double click | Open the file in the editor |
| Right-click | Context menu (create ยท rename ยท delete) |
CSS API โ Style Library
All blocks use the CSS library hosted at
https://studio.online-corps.net/api-css/. It defines a complete design system of 1187+ lines.
Include the library
HTML<link rel="stylesheet" href="https://studio.online-corps.net/api-css/">
Apply a Theme
HTML<body class="theme-sunset">
<!-- --primary, --secondary, --accent replaced by theme values -->
</body>
:root.
btn-primary, btn-white,
btn-ghost, btn-darkโฆ
container-xl, flex, grid-*,
gap-*, position utilities.
.theme-ocean, .theme-sunset, .theme-forest,
.theme-roseโฆ
Changelog
assets/back-end/
Frequently Asked Questions
- You have an account at online-corps.net
- Your username or email is entered correctly (case-sensitive for username)
- Your internet connection is active
- The server at online-corps.net/api/auth/ is reachable
- The project folder is correctly configured in Settings
- You have read/write permissions on this folder
- Each project has a valid
Code_Online.configfile at its root withnameandpathfields
Code_Online.config file with the fields name, description,
createdAt, path and optionally favicon. Code Online will detect it
automatically.
- WampServer or XAMPP is running (icon in the system tray)
- Apache service is started (green icon)
- Port 80 is not blocked by a firewall
- The server folder path is correct in Settings
assets/back-end/[name]/.
HTML, PHP, CSS,
JS, JSON, XML, SVG, TXT,
Markdown. Images (PNG, JPG, GIF, WebP) are visible in the explorer but not directly editable.
C:\wamp64\www) to a backup
location. All files and configurations are in that folder. For automatic backups, use a tool like
FreeFileSync or sync with a cloud service.