Code Online. Docs v3.0
Guide Auth Shortcuts FAQ
On this page
Introduction Installation Sign In โœฆ Account โœฆ Subscription โœฆ Projects Import Visual Editor Blocks (47) Customization Code Editor Backend Builder PHP Pages Save Settings Shortcuts CSS API Changelog FAQ
Documentation v3.0

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.

Windows Electron PHP 47 Blocks Backend Builder Auth v3.0
Getting Started

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

๐Ÿ”
Account Authentication
Sign in with your online-corps.net username or email. JWT session stored locally.
๐Ÿ’Ž
Subscription Plans
Free, Pro and Premium plans with feature gating. Real-time plan verification via API.
๐Ÿงฉ
47 Visual Blocks
Headers, footers, sections, e-commerce, blog, restaurant, SaaS, landingโ€ฆ
๐Ÿงฑ
Backend Builder
21 PHP bricks visually generated and saved in your project.
๐ŸŽจ
Theme Editor
Colors, fonts, border-radius editable live on all blocks.
๐ŸŒ
Multi-language
Interface available in English, Franรงais and ๆ—ฅๆœฌ่ชž.

System Requirements

๐Ÿ’ก
NoteCode Online requires an online-corps.net account to launch. Create one for free at online-corps.net/signup/.
Setup

Installation & Setup

Follow these steps to set up Code Online and your local development environment.

1
Create an account

Register at online-corps.net/signup/ to get your credentials. A Free account gives immediate access.

2
Install a local PHP server

Download WampServer (recommended for Windows) or XAMPP. Start Apache before using Code Online.

3
Launch Code Online & Sign In

Open the app. The sign-in screen appears automatically. Enter your username or email and password.

4
Configure the project folder

Go to Settings โš™๏ธ โ†’ click Browseโ€ฆ โ†’ select your server folder.

5
Create your first project

Return to the home screen, click + New Project and give it a name. It appears immediately in your local server.

Default Paths

Authentication โ€” New in v3.0

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

๐Ÿš€ App Launch
โ†’
๐Ÿ” Check local session
โ†’
๐Ÿ“ก Verify token via API
โ†’
โœ“ Hub loaded

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

๐Ÿ‘ค
Username
Sign in with your online-corps.net username (the key in users_data.php).
๐Ÿ“ง
Email
Alternatively sign in with your main email or pro email address.

Session Storage

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, ... } }
โœ“
Offline modeIf the server is unreachable at launch, Code Online uses the cached local session. You can work normally โ€” plan data will refresh on the next successful connection.
Authentication โ€” New in v3.0

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

Subscription Block

Quick Actions

โœฆ
User menu shortcutClick your avatar in the bottom-left of the sidebar for a quick access menu: Account, Sign out โ€” without navigating away from your current view.
Authentication โ€” New in v3.0

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.

0 โ‚ฌ/month
Free
Version 1.5
Limited feature access
Included with your account
15 โ‚ฌ/month
Pro
Version 2.5
Semi-open feature access
Priority support
โญ Best value
25 โ‚ฌ/month
Premium
Version 3.5
Full feature access
All future updates

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

โœฆ
Upgrade nowVisit online-corps.net/subscription/ to upgrade your plan. Changes are reflected in the app on next launch.
Projects

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

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.

โœฆ
TipUse descriptive, consistent names (e.g. Client-SiteName). A custom logo appears on the project card if you add a favicon during creation.
Projects

Import an Existing Project

You can import any existing web project into Code Online by manually adding a config file.

Code_Online.config File

JSON
{
  "name": "MyProject",
  "description": "Project description",
  "createdAt": "2025-01-01T00:00:00.000Z",
  "lastOpenedAt": null,
  "path": "C:\\wamp64\\www\\MyProject",
  "favicon": "assets/img/favicon.png"
}
โœ“
Auto-detectionOnce the .config is in place, Code Online automatically detects the project on the next Hub screen load. No further action needed.
Editor

Visual Editor

The editor has 3 real-time switchable views: Visual, Code and Preview. Changes in one view are automatically reflected in the others.

๐Ÿ–ผ๏ธ
Visual Mode
Drag & drop blocks on the canvas. Right-click โ†’ context menus. Auto-sync to code.
๐Ÿ’ป
Code Mode
Code editor with line numbers, formatter, copy. Syncs to canvas in 600ms.
๐Ÿ‘๏ธ
Preview Mode
Desktop / Tablet / Mobile preview with real site styles.

File Explorer

๐Ÿ’ก
Real-time syncIn Code mode, the canvas updates automatically after 600ms of inactivity. The โ— indicator in the topbar signals unsaved changes.
Library

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.

๐Ÿท Headers โ€” 8 blocks
header-basicheader-dark header-centeredheader-saas header-blogheader-ecommerce header-restaurantheader-transparent
๐Ÿ“ฆ Body โ€” 33 blocks
herohero-imagehero-split featuresaboutservices pricingstatsteam testimonialsgalleryportfolio contactcontact-splitfaq timelinelogosnewsletter bannerCTAblog-grid
E-commerce product-heroproduct-gridcart-summary Blog article-heroarticle-contentrelated-posts
Restaurant menureservation SaaS dashboard-previewintegration-logos Landing countdownsocial-proof
๐Ÿฆถ Footers โ€” 6 blocks
footer-basicfooter-classic footer-dark-columnsfooter-minimal footer-ecommercefooter-restaurant
โœฆ
Filter blocksClick Filter in the blocks panel (or Ctrl B) to open the full library with name search and category filter.
Editor

Block Customization

The customization panel opens via the โš™๏ธ button on each block or via right-click โ†’ Customizeโ€ฆ. It has 3 tabs.

โœ๏ธ
Texts Tab
List and edit all h1โ€“h6, p, a, buttonโ€ฆ in the block. Click โ†’ inline field. Enter to confirm, Escape to cancel.
๐ŸŽจ
Theme Tab
6 ready palettes + color pickers for Primary, Secondary, Accent, Success, Danger. Font selector. Border-radius slider. Applied in real time to all blocks.
๐Ÿท
Classes Tab
Removable chips for current CSS classes. Field to add custom classes. Quick utility classes grid with active/inactive toggle.

Available Theme Palettes

OceanSunsetForest RoseMidnightAmber
Editor

Code Editor

The built-in code editor supports HTML, PHP, CSS, JS, JSON, XML, SVG, TXT and Markdown.

Backend

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

๐Ÿ—„ Database
PDO Connection
Prepared SELECT
Secure INSERT
UPDATE
DELETE
๐Ÿ” Authentication
Start Session
Login + hash
Registration
Page Guard
Logout
๐Ÿ“ฌ Forms
Contact Form
CSRF Token
Rule Validation
File Upload
๐Ÿ“ก API & JSON
JSON + CORS
Pagination SQL
๐Ÿ›ก Security
Sanitization
Rate Limiter
โšก Utilities
Redirect
File Cache
Config .env
Backend

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.

๐Ÿ”‘
login.php
Complete login form with error handling and redirect.
๐Ÿ“
register.php
Registration with validation, bcrypt hash and duplicate email detection.
๐Ÿ“Š
dashboard.php
Session-protected dashboard with integrated SaaS header.
๐Ÿ“ฌ
contact.php
Contact form with validation and email sending via mail().
๐Ÿ“ก
api.php
Full CRUD REST endpoint (GET/POST/DELETE) with a simple router.
โš™๏ธ
config.php
PDO Connection + global constants (SMTP, APP_URL, APP_DEBUGโ€ฆ).
๐Ÿšช
logout.php
Full session destruction and redirect to login.
Backend

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
1
Choose the target file

Click Choose in the topbar โ†’ select an existing PHP file or create a new one.

2
Assemble your bricks

Click bricks in the palette and configure their properties.

3
Save

Click ๐Ÿ’พ Save to file. Folders are created automatically. The file explorer refreshes and the file opens in the editor.

Reference

Settings

Project Folder

Supported Languages

๐Ÿ’ก
Session fileYour authentication session is stored separately in %AppData%\CodeOnline\session.json. Changing the project folder does not affect your login state.
Reference

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)
Reference

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>
๐ŸŽจ
CSS Variables
Colors, typography, spacing, shadows, transitions โ€” all editable via :root.
๐Ÿ”˜
Buttons
12 variants: btn-primary, btn-white, btn-ghost, btn-darkโ€ฆ
๐Ÿ“
Grid & Layout
container-xl, flex, grid-*, gap-*, position utilities.
๐ŸŽญ
8 Themes
.theme-ocean, .theme-sunset, .theme-forest, .theme-roseโ€ฆ
History

Changelog

v3.0.0 2026 โ€” Current version
Full authentication system โ€” login by username or email, JWT session (30 days)
Account page โ€” live profile, subscription, expiration countdown, quick actions
3 subscription plans (Free / Pro / Premium) with real-time API verification
Level Up button for Free users โ€” pricing modal with live plan data
User widget in sidebar โ€” avatar, plan badge, quick menu
New brand palette โ€” navy #0c1922 / cyan #02dcff (derived from logo)
Full i18n โ€” EN / FR / JP covering auth, account, subscription pages
API endpoints: /api/auth/ (login + verify with subscription payload)
v2.0.6 February 2026
Backend Builder 2.0 โ€” 21 PHP bricks, 7 pre-built pages, save to assets/back-end/
Inline customization panel (texts, theme, classes)
47 Visual Blocks organized into sub-categories
CSS API v2.0 โ€” 1187 lines, 8 Themes, complete utility classes
Two-way real-time sync code โ†” canvas (debounce 600ms)
File Explorer with full context menus
v1.0.0 May 2025
Initial release โ€” project Hub, basic visual editor
First block library (20 blocks)
Multi-language support EN / FR / JP
Electron integration + IPC handlers
Support

Frequently Asked Questions

Make sure:
  • 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
Sign out and sign back in โ€” this forces a fresh token verify that fetches your latest subscription data from the server. If the problem persists, check your subscription status at online-corps.net/subscription/.
Check that:
  • The project folder is correctly configured in Settings
  • You have read/write permissions on this folder
  • Each project has a valid Code_Online.config file at its root with name and path fields
Copy your project into the configured server folder, then add a Code_Online.config file with the fields name, description, createdAt, path and optionally favicon. Code Online will detect it automatically.
Make sure that:
  • 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
Open a project, then press Ctrl+P or click ๐Ÿงฑ Backend in the topbar. Click bricks from the palette to add them, configure their properties in the right panel, then click Save to file โ€” the PHP code is written to assets/back-end/[name]/.
Click the โš™๏ธ button on a block to open the customization panel, then go to the ๐ŸŽจ Theme tab. Color changes apply instantly to all canvas blocks. Choose a ready palette or define custom colors with the color pickers.
The editor supports: HTML, PHP, CSS, JS, JSON, XML, SVG, TXT, Markdown. Images (PNG, JPG, GIF, WebP) are visible in the explorer but not directly editable.
Yes โ€” if you were previously signed in, Code Online uses the cached local session and works fully offline. The authentication API is only called on launch to refresh your subscription data. PHP previews still require a local Apache server.
Simply copy your projects folder (e.g. 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.
โœฆ
Need more help?Join the Online Corps Studio community or check for updates on the official website.