Word document-based pseudo code automatic formatting method and system
A pseudo-code and document technology, applied in the field of document automatic editing, can solve the problems of reducing the efficiency of editing pseudo-code in Word software, cannot become an alternative, and cumbersome code editing, etc., achieves strong flexibility, avoids editing and processing, and improves The effect of work efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] The present embodiment provides a method for automatically formatting pseudo-codes based on Word documents, which belongs to a method for automatically formatting pseudo-codes based on VBA codes in Word, such as figure 1 shown, including:
[0036] S1: Receive pseudocode and format request;
[0037] S2: Call the table in the Word document according to the pseudo code, and input the body and title of the pseudo code into the first cell and the second cell of the table;
[0038] S3: Match each word in the first cell with the keyword according to the keyword in the formatting request and the target format of the keyword, and format the successfully matched words according to the target format;
[0039] S4: add a tab stop for adding line numbers at the head of each line of the statement in the pseudo-code text in the first cell;
[0040] S5: In the second cell, format the title of the pseudo-code according to the title format in the formatting request.
[0041] In this em...
Embodiment 2
[0083] The present embodiment provides a kind of pseudo-code automatic formatting system based on Word document, comprising:
[0084] The receiving module is used to receive pseudocode and format requests;
[0085] Form module, is used for calling the form in the Word document according to pseudocode, and the body text and title of pseudocode are input in the first cell and the second cell of form;
[0086] The first formatting module is used to match each word in the first cell with the keyword according to the keyword in the formatting request and the target format of the keyword, and format the successfully matched words according to the target format;
[0087] The second formatting module is used to add a tab stop for adding line numbers at the head of each row of statements in the pseudo-code text in the first cell;
[0088] The third formatting module is used to format the title of the pseudo-code in the second cell according to the title format in the formatting reques...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com