Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves code export #346

Merged
merged 2 commits into from
Jun 9, 2023
Merged

Improves code export #346

merged 2 commits into from
Jun 9, 2023

Conversation

RhoSigma-QB64
Copy link
Member

  • added ability to export as new [qb=export] Forum codebox
  • Forum/Wiki exports now go to the clipboard and can directly be pasted into the Forum post or Wiki page

- added ability to export as new [qb=export] Forum codebox
- Forum/Wiki exports now go to the clipboard and can directly be pasted into the Forum post or Wiki page
@RhoSigma-QB64 RhoSigma-QB64 added the enhancement New feature or request label Jun 9, 2023
@RhoSigma-QB64 RhoSigma-QB64 self-assigned this Jun 9, 2023
- also fix meta command color in new forum export
SELECT CASE LCASE$(docFormat$)
CASE "html", "rich"
ideerror = 7
OPEN idepath$ + idepathsep$ + pNam$ + ext$ FOR OUTPUT AS #151
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason not to use FREEFILE here? If we did then we wouldn't have to worry about 151 already being in use.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, found that file 151 is used for quick "Write in place" operations in the qb64pe sources, hence immediate OPEN-WRITE-CLOSE constructs like saving changed source, I just adapted to it, as writing the export file is practically the same operation.

@RhoSigma-QB64 RhoSigma-QB64 merged commit c8bf04c into main Jun 9, 2023
@RhoSigma-QB64 RhoSigma-QB64 deleted the export-dev branch June 9, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants